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

#include <SoftBodyVertex.h>

Public Member Functions

void ResetCollision ()
 Reset collision information to prepare for a new collision check.
 

Public Attributes

Vec3 mPreviousPosition
 Internal use only. Position at the previous time step.
 
Vec3 mPosition
 Position, relative to the center of mass of the soft body.
 
Vec3 mVelocity
 Velocity, relative to the center of mass of the soft body.
 
Plane mCollisionPlane
 Internal use only. Nearest collision plane, relative to the center of mass of the soft body.
 
int mCollidingShapeIndex
 Internal use only. Index in the colliding shapes list of the body we may collide with.
 
bool mHasContact
 True if the vertex has collided with anything in the last update.
 
float mLargestPenetration
 Internal use only. Used while finding the collision plane, stores the largest penetration found so far.
 
float mInvMass
 Inverse mass (1 / mass)
 

Detailed Description

Run time information for a single particle of a soft body Note that at run-time you should only modify the inverse mass and/or velocity of a vertex to control the soft body. Modifying the position can lead to missed collisions. The other members are used internally by the soft body solver.

Member Function Documentation

◆ ResetCollision()

void SoftBodyVertex::ResetCollision ( )
inline

Reset collision information to prepare for a new collision check.

Member Data Documentation

◆ mCollidingShapeIndex

int SoftBodyVertex::mCollidingShapeIndex

Internal use only. Index in the colliding shapes list of the body we may collide with.

◆ mCollisionPlane

Plane SoftBodyVertex::mCollisionPlane

Internal use only. Nearest collision plane, relative to the center of mass of the soft body.

◆ mHasContact

bool SoftBodyVertex::mHasContact

True if the vertex has collided with anything in the last update.

◆ mInvMass

float SoftBodyVertex::mInvMass

Inverse mass (1 / mass)

◆ mLargestPenetration

float SoftBodyVertex::mLargestPenetration

Internal use only. Used while finding the collision plane, stores the largest penetration found so far.

◆ mPosition

Vec3 SoftBodyVertex::mPosition

Position, relative to the center of mass of the soft body.

◆ mPreviousPosition

Vec3 SoftBodyVertex::mPreviousPosition

Internal use only. Position at the previous time step.

◆ mVelocity

Vec3 SoftBodyVertex::mVelocity

Velocity, relative to the center of mass of the soft body.


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