Jolt Physics
A multi core friendly Game Physics Engine
|
#include <CollideSoftBodyVertexIterator.h>
Public Member Functions | |
CollideSoftBodyVertexIterator ()=default | |
Default constructor. | |
CollideSoftBodyVertexIterator (const CollideSoftBodyVertexIterator &)=default | |
CollideSoftBodyVertexIterator (const StridedPtr< const Vec3 > &inPosition, const StridedPtr< const float > &inInvMass, const StridedPtr< Plane > &inCollisionPlane, const StridedPtr< float > &inLargestPenetration, const StridedPtr< int > &inCollidingShapeIndex) | |
Construct using (strided) pointers. | |
CollideSoftBodyVertexIterator (SoftBodyVertex *inVertices) | |
Construct using a soft body vertex. | |
CollideSoftBodyVertexIterator & | operator= (const CollideSoftBodyVertexIterator &)=default |
Default assignment. | |
bool | operator!= (const CollideSoftBodyVertexIterator &inRHS) const |
CollideSoftBodyVertexIterator & | operator++ () |
Next vertex. | |
CollideSoftBodyVertexIterator | operator+ (int inOffset) const |
Vec3 | GetPosition () const |
Get the position of the current vertex. | |
float | GetInvMass () const |
Get the inverse mass of the current vertex. | |
bool | UpdatePenetration (float inLargestPenetration) const |
void | SetCollision (const Plane &inCollisionPlane, int inCollidingShapeIndex) const |
Update the collision of the current vertex. | |
Class that allows iterating over the vertices of a soft body. It tracks the largest penetration and allows storing the resulting collision in a different structure than the soft body vertex itself.
|
default |
Default constructor.
|
default |
|
inline |
Construct using (strided) pointers.
|
inlineexplicit |
Construct using a soft body vertex.
|
inline |
Get the inverse mass of the current vertex.
|
inline |
Get the position of the current vertex.
|
inline |
Equality operator. Note: Only used to determine end iterator, so we only compare position.
|
inline |
Add an offset Note: Only used to determine end iterator, so we only set position.
|
inline |
Next vertex.
|
default |
Default assignment.
|
inline |
Update the collision of the current vertex.
|
inline |
Update penetration of the current vertex