48 mVertices(inMotionProperties->mVertices),
49 mCollidingShapes(inMotionProperties->mCollidingShapes)
53 using CollidingShape = SoftBodyMotionProperties::CollidingShape;
#define JPH_NAMESPACE_END
Definition: Core.h:378
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
ID of a body. This is a way of reasoning about bodies in a multithreaded simulation while avoiding ra...
Definition: BodyID.h:13
Vec3 GetNormal() const
Definition: Plane.h:30
float SignedDistance(Vec3Arg inPoint) const
Distance point to plane.
Definition: Plane.h:46
An interface to query which vertices of a soft body are colliding with other bodies.
Definition: SoftBodyManifold.h:13
JPH_INLINE bool HasContact(const SoftBodyVertex &inVertex) const
Check if a vertex has collided with something in this update.
Definition: SoftBodyManifold.h:19
JPH_INLINE Vec3 GetLocalContactPoint(const SoftBodyVertex &inVertex) const
Get the local space contact point (multiply by GetCenterOfMassTransform() of the soft body to get wor...
Definition: SoftBodyManifold.h:25
JPH_INLINE BodyID GetContactBodyID(const SoftBodyVertex &inVertex) const
Get the body with which the vertex has collided in this update.
Definition: SoftBodyManifold.h:37
const Array< SoftBodyVertex > & GetVertices() const
Get the vertices of the soft body for iterating.
Definition: SoftBodyManifold.h:16
JPH_INLINE Vec3 GetContactNormal(const SoftBodyVertex &inVertex) const
Get the contact normal for the vertex (assumes there is a contact).
Definition: SoftBodyManifold.h:31
This class contains the runtime information of a soft body.
Definition: SoftBodyMotionProperties.h:34
Definition: SoftBodyVertex.h:16
bool mHasContact
True if the vertex has collided with anything in the last update.
Definition: SoftBodyVertex.h:23
int mCollidingShapeIndex
Index in the colliding shapes list of the body we may collide with.
Definition: SoftBodyVertex.h:22
Plane mCollisionPlane
Nearest collision plane, relative to the center of mass of the soft body.
Definition: SoftBodyVertex.h:21
Vec3 mPosition
Position, relative to the center of mass of the soft body.
Definition: SoftBodyVertex.h:19