Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
SoftBodyManifold Class Reference

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.
 
JPH_INLINE bool HasContact (const SoftBodyVertex &inVertex) const
 Check if a vertex has collided with something in this update.
 
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)
 
JPH_INLINE Vec3 GetContactNormal (const SoftBodyVertex &inVertex) const
 Get the contact normal for the vertex (assumes there is a contact).
 
JPH_INLINE BodyID GetContactBodyID (const SoftBodyVertex &inVertex) const
 Get the body with which the vertex has collided in this update.
 

Friends

class SoftBodyMotionProperties
 Allow SoftBodyMotionProperties to construct us.
 

Detailed Description

An interface to query which vertices of a soft body are colliding with other bodies.

Member Function Documentation

◆ GetContactBodyID()

JPH_INLINE BodyID SoftBodyManifold::GetContactBodyID ( const SoftBodyVertex inVertex) const
inline

Get the body with which the vertex has collided in this update.

◆ GetContactNormal()

JPH_INLINE Vec3 SoftBodyManifold::GetContactNormal ( const SoftBodyVertex inVertex) const
inline

Get the contact normal for the vertex (assumes there is a contact).

◆ GetLocalContactPoint()

JPH_INLINE Vec3 SoftBodyManifold::GetLocalContactPoint ( const SoftBodyVertex inVertex) const
inline

Get the local space contact point (multiply by GetCenterOfMassTransform() of the soft body to get world space)

◆ GetVertices()

const Array< SoftBodyVertex > & SoftBodyManifold::GetVertices ( ) const
inline

Get the vertices of the soft body for iterating.

◆ HasContact()

JPH_INLINE bool SoftBodyManifold::HasContact ( const SoftBodyVertex inVertex) const
inline

Check if a vertex has collided with something in this update.

Friends And Related Symbol Documentation

◆ SoftBodyMotionProperties

friend class SoftBodyMotionProperties
friend

Allow SoftBodyMotionProperties to construct us.


The documentation for this class was generated from the following file: