My Project
|
ParaFaceTrackingCtrler object: it will allow the biped to always face to a given target or another biped. More...
#include <ParaScriptingCharacter.h>
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. More... | |
Public Attributes | |
CFaceTrackingCtrler * | m_pFaceTrackingCtrler |
ParaFaceTrackingCtrler object: it will allow the biped to always face to a given target or another biped.
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. |