23 mPosition(inPosition),
25 mCollisionPlane(inCollisionPlane),
26 mLargestPenetration(inLargestPenetration),
27 mCollidingShapeIndex(inCollidingShapeIndex)
35 mCollisionPlane(&inVertices->mCollisionPlane, sizeof(
SoftBodyVertex)),
36 mLargestPenetration(&inVertices->mLargestPenetration, sizeof(
SoftBodyVertex)),
37 mCollidingShapeIndex(&inVertices->mCollidingShapeIndex, sizeof(
SoftBodyVertex))
48 return mPosition != inRHS.mPosition;
57 ++mLargestPenetration;
58 ++mCollidingShapeIndex;
85 float &penetration = *mLargestPenetration;
86 if (penetration >= inLargestPenetration)
88 penetration = inLargestPenetration;
95 *mCollisionPlane = inCollisionPlane;
96 *mCollidingShapeIndex = inCollidingShapeIndex;
#define JPH_NAMESPACE_END
Definition: Core.h:378
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
Definition: CollideSoftBodyVertexIterator.h:15
CollideSoftBodyVertexIterator(const CollideSoftBodyVertexIterator &)=default
CollideSoftBodyVertexIterator & operator=(const CollideSoftBodyVertexIterator &)=default
Default assignment.
CollideSoftBodyVertexIterator(SoftBodyVertex *inVertices)
Construct using a soft body vertex.
Definition: CollideSoftBodyVertexIterator.h:32
float GetInvMass() const
Get the inverse mass of the current vertex.
Definition: CollideSoftBodyVertexIterator.h:76
CollideSoftBodyVertexIterator operator+(int inOffset) const
Definition: CollideSoftBodyVertexIterator.h:64
void SetCollision(const Plane &inCollisionPlane, int inCollidingShapeIndex) const
Update the collision of the current vertex.
Definition: CollideSoftBodyVertexIterator.h:93
Vec3 GetPosition() const
Get the position of the current vertex.
Definition: CollideSoftBodyVertexIterator.h:70
bool operator!=(const CollideSoftBodyVertexIterator &inRHS) const
Definition: CollideSoftBodyVertexIterator.h:46
CollideSoftBodyVertexIterator()=default
Default constructor.
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.
Definition: CollideSoftBodyVertexIterator.h:22
CollideSoftBodyVertexIterator & operator++()
Next vertex.
Definition: CollideSoftBodyVertexIterator.h:52
bool UpdatePenetration(float inLargestPenetration) const
Definition: CollideSoftBodyVertexIterator.h:83
An infinite plane described by the formula X . Normal + Constant = 0.
Definition: Plane.h:11
Definition: SoftBodyVertex.h:16
Definition: StridedPtr.h:14