Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
SoftBodySharedSettings::Vertex Struct Reference

A vertex is a particle, the data in this structure is only used during creation of the soft body and not during simulation. More...

#include <SoftBodySharedSettings.h>

Public Member Functions

 Vertex ()=default
 Constructor. More...
 
 Vertex (const Float3 &inPosition, const Float3 &inVelocity=Float3(0, 0, 0), float inInvMass=1.0f)
 

Public Attributes

Float3 mPosition { 0, 0, 0 }
 Initial position of the vertex. More...
 
Float3 mVelocity { 0, 0, 0 }
 Initial velocity of the vertex. More...
 
float mInvMass = 1.0f
 Initial inverse of the mass of the vertex. More...
 

Detailed Description

A vertex is a particle, the data in this structure is only used during creation of the soft body and not during simulation.

Constructor & Destructor Documentation

◆ Vertex() [1/2]

SoftBodySharedSettings::Vertex::Vertex ( )
default

Constructor.

◆ Vertex() [2/2]

SoftBodySharedSettings::Vertex::Vertex ( const Float3 inPosition,
const Float3 inVelocity = Float3(0, 0, 0),
float  inInvMass = 1.0f 
)
inline

Member Data Documentation

◆ mInvMass

float SoftBodySharedSettings::Vertex::mInvMass = 1.0f

Initial inverse of the mass of the vertex.

◆ mPosition

Float3 SoftBodySharedSettings::Vertex::mPosition { 0, 0, 0 }

Initial position of the vertex.

◆ mVelocity

Float3 SoftBodySharedSettings::Vertex::mVelocity { 0, 0, 0 }

Initial velocity of the vertex.


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