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) |
![]() | |
void | CalculateCurveFactor (HBhvTimeline *timeline, int keyframe) |
void | CalculateCurveLength (HPoint p2) |
void | CalculateHermiteTangents (HPoint p0, HPoint p2, HPoint p3, float a=0.5f) |
void | DrawTangents (HPoint p2) |
HKeyframeChannelCurve (float x=0, float y=0, float z=0) | |
HPoint | InterpolateHermiteSpline (float fraction, HPoint p1, HPoint p2) |
![]() | |
HKeyframeChannel () | |
![]() | |
HKeyframe () | |
virtual void | SetConstant (bool constant) |
virtual void | SetEaseInOut (bool easeinout) |
virtual void | SetRelative (bool relative) |
Public Attributes | |
bool | m_bLinear |
bool | m_bNoRotate |
float | tmatrix [16] |
float | tmatrix2 [16] |
![]() | |
float | b |
float | c |
HPoint * | control_polygon |
float | ItemType |
float | m_curvelength |
float | m_factor1 |
float | m_factor2 |
HPoint | m_tangent1 |
HPoint | m_tangent2 |
![]() | |
HANIChannelType | m_channeltype |
HPoint | m_cp |
![]() | |
bool | m_bConstant |
bool | m_bEaseInOut |
bool | m_bRelative |
HANIKeyframeType | m_type |
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.
|
inline |
Constructs a HKeyframeChannelFollowPath object.
References HANIFollowPath.
|
inlinevirtual |
This method makes an exact copy of the current HKeyframeChannelFollowPath and returns a pointer to the newly created HKeyframeChannelFollowPath object.
Reimplemented from HKeyframeChannelCurve.
|
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 |
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.