Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
SoftBodyVertex.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2023 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
8
10
35
#define JPH_NAMESPACE_END
Definition Core.h:378
#define JPH_NAMESPACE_BEGIN
Definition Core.h:372
An infinite plane described by the formula X . Normal + Constant = 0.
Definition Plane.h:11
Definition SoftBodyVertex.h:16
void ResetCollision()
Reset collision information to prepare for a new collision check.
Definition SoftBodyVertex.h:19
Vec3 mPreviousPosition
Internal use only. Position at the previous time step.
Definition SoftBodyVertex.h:26
float mInvMass
Inverse mass (1 / mass)
Definition SoftBodyVertex.h:33
Vec3 mVelocity
Velocity, relative to the center of mass of the soft body.
Definition SoftBodyVertex.h:28
bool mHasContact
True if the vertex has collided with anything in the last update.
Definition SoftBodyVertex.h:31
float mLargestPenetration
Internal use only. Used while finding the collision plane, stores the largest penetration found so fa...
Definition SoftBodyVertex.h:32
int mCollidingShapeIndex
Internal use only. Index in the colliding shapes list of the body we may collide with.
Definition SoftBodyVertex.h:30
Plane mCollisionPlane
Internal use only. Nearest collision plane, relative to the center of mass of the soft body.
Definition SoftBodyVertex.h:29
Vec3 mPosition
Position, relative to the center of mass of the soft body.
Definition SoftBodyVertex.h:27
Definition Vec3.h:17