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 |
Detailed Description
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.
Constructor & Destructor Documentation
◆ HKeyframeChannelFollowPath()
|
inline |
Constructs a HKeyframeChannelFollowPath object.
References HANIFollowPath.
Member Function Documentation
◆ Clone()
|
inlinevirtual |
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.
Reimplemented from HKeyframeChannelCurve.
◆ Interpolate()
|
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.
Reimplemented from HKeyframeChannelCurve.
◆ Serialize()
|
virtual |
Writes XML data to a buffer.
Reimplemented from HKeyframeChannelCurve.
Member Data Documentation
◆ tmatrix
float HKeyframeChannelFollowPath::tmatrix[16] |
For internal use only.
◆ tmatrix2
float HKeyframeChannelFollowPath::tmatrix2[16] |
For internal use only.
The documentation for this class was generated from the following file: