18 mInvTransform(mTransform.Inversed()),
25 mLocalPosition = mInvTransform *
inVertex.mPosition;
35 if (
dist_sq < mClosestDistanceSq)
48 if (mClosestDistanceSq <
FLT_MAX)
51 Vec3 v0 = mTransform * mV0;
52 Vec3 v1 = mTransform * mV1;
53 Vec3 v2 = mTransform * mV2;
#define JPH_EXPORT
Definition Core.h:227
#define JPH_NAMESPACE_END
Definition Core.h:367
std::uint32_t uint32
Definition Core.h:442
#define JPH_NAMESPACE_BEGIN
Definition Core.h:361
AllocateFunction Allocate
Definition Memory.cpp:59
Collision detection helper that collides soft body vertices vs triangles.
Definition CollideSoftBodyVerticesVsTriangles.h:14
JPH_INLINE void ProcessTriangle(Vec3Arg inV0, Vec3Arg inV1, Vec3Arg inV2)
Definition CollideSoftBodyVerticesVsTriangles.h:29
uint32 mSet
Definition CollideSoftBodyVerticesVsTriangles.h:95
Mat44 mInvTransform
Definition CollideSoftBodyVerticesVsTriangles.h:89
Vec3 mLocalPosition
Definition CollideSoftBodyVerticesVsTriangles.h:90
CollideSoftBodyVerticesVsTriangles(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale)
Definition CollideSoftBodyVerticesVsTriangles.h:16
float mClosestDistanceSq
Definition CollideSoftBodyVerticesVsTriangles.h:94
float mNormalSign
Definition CollideSoftBodyVerticesVsTriangles.h:93
Vec3 mClosestPoint
Definition CollideSoftBodyVerticesVsTriangles.h:92
JPH_INLINE void FinishVertex(SoftBodyVertex &ioVertex, int inCollidingShapeIndex) const
Definition CollideSoftBodyVerticesVsTriangles.h:46
Mat44 mTransform
Definition CollideSoftBodyVerticesVsTriangles.h:88
Vec3 mV0
Definition CollideSoftBodyVerticesVsTriangles.h:91
JPH_INLINE void StartVertex(const SoftBodyVertex &inVertex)
Definition CollideSoftBodyVerticesVsTriangles.h:23
Holds a 4x4 matrix of floats, but supports also operations on the 3x3 upper left part of the matrix.
Definition Mat44.h:13
static Plane sFromPointAndNormal(Vec3Arg inPoint, Vec3Arg inNormal)
Create from point and normal.
Definition Plane.h:21
Definition SoftBodyVertex.h:16
static JPH_INLINE Vec3 sAxisY()
Definition Vec3.h:53
JPH_INLINE float Length() const
Length of vector.
Definition Vec3.inl:669
JPH_INLINE Vec3 NormalizedOr(Vec3Arg inZeroValue) const
Normalize vector or return inZeroValue if the length of the vector is zero.
Definition Vec3.inl:708
Vec3 GetClosestPointOnTriangle(Vec3Arg inA, Vec3Arg inB, Vec3Arg inC, uint32 &outSet)
Definition ClosestPoint.h:160
Helper functions to get properties of a scaling vector.
Definition ScaleHelpers.h:13