18 virtual
float GetPathMaxFraction()
const override {
return float(
IsLooping()? mPoints.size() : mPoints.size() - 1); }
24 virtual void GetPointOnPath(
float inFraction,
Vec3 &outPathPosition,
Vec3 &outPathTangent,
Vec3 &outPathNormal,
Vec3 &outPathBinormal)
const override;
43 virtual
void RestoreBinaryState(
StreamIn &inStream) override;
47 inline
void GetIndexAndT(
float inFraction,
int &outIndex,
float &outT) const;
#define JPH_EXPORT
Definition: Core.h:227
#define JPH_NAMESPACE_END
Definition: Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
std::vector< T, STLAllocator< T > > Array
Definition: STLAllocator.h:81
#define JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(linkage, class_name)
Definition: SerializableObject.h:71
#define JPH_DECLARE_SERIALIZABLE_VIRTUAL(linkage, class_name)
Definition: SerializableObject.h:100
A path that follows a Hermite spline.
Definition: PathConstraintPathHermite.h:13
void AddPoint(Vec3Arg inPosition, Vec3Arg inTangent, Vec3Arg inNormal)
Adds a point to the path.
Definition: PathConstraintPathHermite.h:27
The path for a path constraint. It allows attaching two bodies to each other while giving the second ...
Definition: PathConstraintPath.h:21
virtual void SaveBinaryState(StreamOut &inStream) const
Saves the contents of the path in binary form to inStream.
Definition: PathConstraintPath.cpp:68
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