afxPath3D

Engine/source/afx/util/afxPath3D.h

More...

Public Types

enum
LoopType {
  LOOP_CONSTANT 
  LOOP_CYCLE 
  LOOP_OSCILLATE 
}

Public Attributes

Public Functions

buildPath(int num_points, Point3F curve_points, F32 point_times, F32 time_offset, F32 time_factor)
buildPath(int num_points, Point3F curve_points, F32 speed)
buildPath(int num_points, Point3F curve_points, F32 start_time, F32 end_time)
buildPath(int num_points, Point3F curve_points, Point2F curve_params)
getPointTime(int index)
setPointPosition(int index, Point3F & p)

Private Functions

initPathParameters(Point3F curve_points, F32 speed)
initPathParametersNEW(Point3F curve_points, F32 start_time, F32 end_time)

Detailed Description

Public Types

LoopType

Enumerator

LOOP_CONSTANT
LOOP_CYCLE
LOOP_OSCILLATE

Private Attributes

afxCurve3D mCurve 
afxAnimCurve mCurve_parameters 
F32 mEnd_time 
int mNum_points 
F32 mStart_time 

Public Attributes

U32 mLoop_type 

Public Functions

afxPath3D()

~afxPath3D()

buildPath(int num_points, Point3F curve_points, F32 point_times, F32 time_offset, F32 time_factor)

buildPath(int num_points, Point3F curve_points, F32 speed)

buildPath(int num_points, Point3F curve_points, F32 start_time, F32 end_time)

buildPath(int num_points, Point3F curve_points, Point2F curve_params)

evaluateAtTime(F32 t0, F32 t1)

evaluateAtTime(F32 time)

evaluateTangentAtPoint(int index)

evaluateTangentAtTime(F32 time)

getEndTime()

getNumPoints()

getParameterSegment(F32 time)

getPointParameter(int index)

getPointPosition(int index)

getPointTime(int index)

print()

reBuildPath()

setLoopType(U32 )

setPointPosition(int index, Point3F & p)

setStartTime(F32 time)

sortAll()

Private Functions

calcCurveTime(F32 time)

initPathParameters(Point3F curve_points, F32 speed)

initPathParametersNEW(Point3F curve_points, F32 start_time, F32 end_time)