HKeyframeChannelFollowPath
-
class
HKeyframeChannelFollowPath The
HKeyframeChannelFollowPathclass is used for interpolators that change orientation in relation to position.By specifying a set of positional control points, this interpolator can adjust the orientation of the target according to the path curvature like a car following the road.
Inherits from:
HKeyframeChannelCurve
Methods
-
HKeyframeChannelFollowPath::HKeyframeChannelFollowPath() Constructs a
HKeyframeChannelFollowPathobject.
-
virtual
HKeyframeChannelFollowPath::~HKeyframeChannelFollowPath() virtual
-
virtual HKeyframe *
HKeyframeChannelFollowPath::Clone() virtual
This method makes an exact copy of the current
HKeyframeChannelFollowPathand returns a pointer to the newly createdHKeyframeChannelFollowPathobject.Returns
A pointer to newly createdHKeyframeChannelFollowPathobject.
-
virtual void
HKeyframeChannelFollowPath::Interpolate(HKeyframeChannel const *posarray[], int keyframe, float fraction, int length, HPoint &res) virtual
Calculates the interpolation between this keyframe and the next keyframe.
Parameters
posarray: The array of
HKeyframeChannelobjects.keyframe: They current keyframe number.
fraction: The fraction from this keyframe to next.
length: The number of entries in the keyframe array.
res: Returns the interpolation result.
-
virtual void
HKeyframeChannelFollowPath::Serialize(HUtilityXMLTag *xmlgen) virtual
Writes XML data to a buffer.
Variables
-
float
HKeyframeChannelFollowPath::tmatrix[16] - float
For internal use only.
-
float
HKeyframeChannelFollowPath::tmatrix2[16] - float
For internal use only.
-
bool
HKeyframeChannelFollowPath::m_bLinear - bool
-
bool
HKeyframeChannelFollowPath::m_bNoRotate - bool