curve of bone's position, rotation or scale More...
Inherits Ref.
Public Member Functions | |
void | evaluate (float time, float *dst, EvaluateType type) const |
evaluate value of time More... | |
void | setEvaluateFun (std::function< void(float time, float *dst)> fun) |
set evaluate function, allow the user use own function | |
var | setEvaluateFun ( var time, var fun) |
set evaluate function, allow the user use own function | |
float | getStartTime () const |
get start time | |
float | getEndTime () const |
get end time | |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
local | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
local | getReferenceCount () |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Destructor. More... | |
Static Public Member Functions | |
static AnimationCurve * | create (float *keytime, float *value, int count) |
create animation curve | |
Protected Member Functions | |
int | determineIndex (float time) const |
Determine index by time. | |
var | determineIndex ( var time) |
Determine index by time. | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
local | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
local | _luaID |
Lua reference id. | |
void * | _scriptObject |
scriptObject, support for swift | |
local | _scriptObject |
scriptObject, support for swift | |
bool | _rooted |
When true, it means that the object was already rooted. | |
local | _rooted |
When true, it means that the object was already rooted. | |
curve of bone's position, rotation or scale
void evaluate | ( | float | time, |
float * | dst, | ||
EvaluateType | type | ||
) | const |
evaluate value of time
time | Time to be estimated |
dst | Estimated value of that time |
type | EvaluateType |
var evaluate | ( | var | time, |
var | dst, | ||
var | type | ||
) |
evaluate value of time
time | Time to be estimated |
dst | Estimated value of that time |
type | EvaluateType |