24 virtual void GetPointOnPath(
float inFraction,
Vec3 &outPathPosition,
Vec3 &outPathTangent,
Vec3 &outPathNormal,
Vec3 &outPathBinormal)
const override;
47 inline
void GetIndexAndT(
float inFraction,
int &outIndex,
float &outT) const;
#define JPH_EXPORT
Definition Core.h:275
#define JPH_NAMESPACE_END
Definition Core.h:425
#define JPH_NAMESPACE_BEGIN
Definition Core.h:419
const Vec3 Vec3Arg
Definition MathTypes.h:19
#define JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(linkage, class_name)
Definition SerializableObject.h:80
#define JPH_DECLARE_SERIALIZABLE_VIRTUAL(linkage, class_name)
Definition SerializableObject.h:109
A path that follows a Hermite spline.
Definition PathConstraintPathHermite.h:13
virtual void RestoreBinaryState(StreamIn &inStream) override
This function should not be called directly, it is used by sRestoreFromBinaryState.
Definition PathConstraintPathHermite.cpp:301
void AddPoint(Vec3Arg inPosition, Vec3Arg inTangent, Vec3Arg inNormal)
Adds a point to the path.
Definition PathConstraintPathHermite.h:27
virtual float GetPathMaxFraction() const override
Gets the max fraction along the path. I.e. sort of the length of the path.
Definition PathConstraintPathHermite.h:18
virtual void SaveBinaryState(StreamOut &inStream) const
Saves the contents of the path in binary form to inStream.
Definition PathConstraintPath.cpp:68
PathConstraintPath()=default
Don't allow (copy) constructing this base class, but allow derived classes to (copy) construct themse...
bool IsLooping() const
Definition PathConstraintPath.h:49
virtual void GetPointOnPath(float inFraction, Vec3 &outPathPosition, Vec3 &outPathTangent, Vec3 &outPathNormal, Vec3 &outPathBinormal) const =0
virtual float GetClosestPoint(Vec3Arg inPosition, float inFractionHint) const =0
Simple binary input stream.
Definition StreamIn.h:13
Simple binary output stream.
Definition StreamOut.h:13
Definition PathConstraintPathHermite.h:33
Vec3 mTangent
Tangent of the path, does not need to be normalized (in the direction of the path).
Definition PathConstraintPathHermite.h:37
Vec3 mNormal
Normal of the path (together with the tangent along the curve this forms a basis for the constraint).
Definition PathConstraintPathHermite.h:38
Vec3 mPosition
Position on the path.
Definition PathConstraintPathHermite.h:36