The HKeyframeChannelFollowPath class is used for interpolators that change orientation in relation to position. More...
#include <HBhvUtility.h>
Public Member Functions | |
virtual HKeyframe * | Clone () |
HKeyframeChannelFollowPath () | |
virtual void | Interpolate (HKeyframeChannel **posarray, int keyframe, float fraction, int length, HPoint &res) |
virtual void | Serialize (HUtilityXMLTag *xmlgen) |
Public Attributes | |
bool | m_bLinear |
bool | m_bNoRotate |
float | tmatrix [16] |
float | tmatrix2 [16] |
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.
HKeyframeChannelFollowPath::HKeyframeChannelFollowPath | ( | ) | [inline] |
Constructs a HKeyframeChannelFollowPath object.
References HANIFollowPath.
virtual HKeyframe* HKeyframeChannelFollowPath::Clone | ( | ) | [inline, virtual] |
This method makes an exact copy of the current HKeyframeChannelFollowPath and returns a pointer to the newly created HKeyframeChannelFollowPath object.
Reimplemented from HKeyframeChannelCurve.
virtual void HKeyframeChannelFollowPath::Interpolate | ( | HKeyframeChannel ** | posarray, |
int | keyframe, | ||
float | fraction, | ||
int | length, | ||
HPoint & | res | ||
) | [virtual] |
Calculates the interpolation between this keyframe and the next keyframe.
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. |
Reimplemented from HKeyframeChannelCurve.
virtual void HKeyframeChannelFollowPath::Serialize | ( | HUtilityXMLTag * | xmlgen | ) | [virtual] |
Writes XML data to a buffer.
Reimplemented from HKeyframeChannelCurve.
float HKeyframeChannelFollowPath::tmatrix[16] |
For internal use only.
float HKeyframeChannelFollowPath::tmatrix2[16] |
For internal use only.