HKeyframeChannelFollowPath

class HKeyframeChannelFollowPath

The HKeyframeChannelFollowPath class 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 HKeyframeChannelFollowPath object.

virtual HKeyframeChannelFollowPath::~HKeyframeChannelFollowPath()

virtual

virtual HKeyframe *HKeyframeChannelFollowPath::Clone()

virtual

This method makes an exact copy of the current HKeyframeChannelFollowPath and returns a pointer to the newly created HKeyframeChannelFollowPath object.

Returns

A pointer to newly created HKeyframeChannelFollowPath object.
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 HKeyframeChannel objects.

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