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

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)

◆ GetNumSensorContacts()

JPH_INLINE uint SoftBodyManifold::GetNumSensorContacts ( ) const
inline

Get the number of sensors that are in contact with the soft body.

◆ GetSensorContactBodyID()

JPH_INLINE BodyID SoftBodyManifold::GetSensorContactBodyID ( uint  inIndex) const
inline

Get the i-th sensor that is in contact with the soft body.

◆ 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 Function Documentation

◆ SoftBodyMotionProperties

friend class SoftBodyMotionProperties
friend

Allow SoftBodyMotionProperties to construct us.


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