Public Member Functions | |
bool | IsValid () |
check if the object is valid | |
ParaFaceTrackingCtrler (CFaceTrackingCtrler *pObj) | |
void | FaceTarget (float x, float y, float z, float fDuration) |
instruct a character to face a target for a certain duration. | |
Public Attributes | |
CFaceTrackingCtrler * | m_pFaceTrackingCtrler |
void ParaScripting::ParaFaceTrackingCtrler::FaceTarget | ( | float | x, | |
float | y, | |||
float | z, | |||
float | fDuration | |||
) |
instruct a character to face a target for a certain duration.
It will smoothly rotate the character neck to face it
x,y,z,: | which point in world space to face to | |
fDuration,: | how many seconds the character should keeps facing the target. Set zero or a negative value to cancel facing previous point. |