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... | |
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 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.