⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
curve of bone's position, rotation or scale More...
#include <AnimationCurve.h>
Inherits Object.
Public Member Functions | |
| void | evaluate (float time, float *dst, EvaluateType type) const |
| evaluate value of time | |
| void | setEvaluateFun (std::function< void(float time, float *dst)> fun) |
| set evaluate function, allow the user use own function | |
| float | getStartTime () const |
| get start time | |
| float | getEndTime () const |
| get end time | |
| int | determineIndex (float time) const |
| Determine index by time. | |
| Public Member Functions inherited from Object | |
| void | retain () |
| Retains the ownership. | |
| void | release () |
| Releases the ownership immediately. | |
| Object * | autorelease () |
| Releases the ownership sometime soon automatically. | |
| unsigned int | getReferenceCount () const |
| Returns the Object's current reference count. | |
| virtual | ~Object () |
| Destructor. | |
Static Public Member Functions | |
| static AnimationCurve * | create (float *keytime, float *value, int count) |
| create animation curve | |
Additional Inherited Members | |
| Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
curve of bone's position, rotation or scale
@lua NA
| 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 |