HKeyframeChannelFollowPath

Fields

float

tmatrix

float

tmatrix2

bool

m_bLinear

bool

m_bNoRotate

Functions

HKeyframeChannelFollowPath

~HKeyframeChannelFollowPath

HKeyframe *

Clone

void

Interpolate

void

Serialize

Detailed Description

class HKeyframeChannelFollowPath : public HKeyframeChannelCurve

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.

Public Functions

inline HKeyframeChannelFollowPath()

Constructs a HKeyframeChannelFollowPath object.

inline virtual ~HKeyframeChannelFollowPath()
inline virtual HKeyframe *Clone()

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 Interpolate(HKeyframeChannel **posarray, int keyframe, float fraction, int length, HPoint &res)

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 Serialize(HUtilityXMLTag *xmlgen)

Writes XML data to a buffer.

Public Members

float tmatrix[16]

For internal use only.

float tmatrix2[16]

For internal use only.

bool m_bLinear
bool m_bNoRotate