Jolt Physics
A multi core friendly Game Physics Engine
|
An interface to query which vertices of a soft body are colliding with other bodies. More...
#include <SoftBodyManifold.h>
Public Member Functions | |
const Array< SoftBodyVertex > & | GetVertices () const |
Get the vertices of the soft body for iterating. More... | |
JPH_INLINE bool | HasContact (const SoftBodyVertex &inVertex) const |
Check if a vertex has collided with something in this update. More... | |
JPH_INLINE Vec3 | GetLocalContactPoint (const SoftBodyVertex &inVertex) const |
Get the local space contact point (multiply by GetCenterOfMassTransform() of the soft body to get world space) More... | |
JPH_INLINE Vec3 | GetContactNormal (const SoftBodyVertex &inVertex) const |
Get the contact normal for the vertex (assumes there is a contact). More... | |
JPH_INLINE BodyID | GetContactBodyID (const SoftBodyVertex &inVertex) const |
Get the body with which the vertex has collided in this update. More... | |
JPH_INLINE uint | GetNumSensorContacts () const |
Get the number of sensors that are in contact with the soft body. More... | |
JPH_INLINE BodyID | GetSensorContactBodyID (uint inIndex) const |
Get the i-th sensor that is in contact with the soft body. More... | |
Friends | |
class | SoftBodyMotionProperties |
Allow SoftBodyMotionProperties to construct us. More... | |
An interface to query which vertices of a soft body are colliding with other bodies.
|
inline |
Get the body with which the vertex has collided in this update.
|
inline |
Get the contact normal for the vertex (assumes there is a contact).
|
inline |
Get the local space contact point (multiply by GetCenterOfMassTransform() of the soft body to get world space)
|
inline |
Get the number of sensors that are in contact with the soft body.
Get the i-th sensor that is in contact with the soft body.
|
inline |
Get the vertices of the soft body for iterating.
|
inline |
Check if a vertex has collided with something in this update.
|
friend |
Allow SoftBodyMotionProperties to construct us.