Animate3D, Animates a MeshRenderer given with an Animation3D.
More...
#include <Animate3D.h>
Inherits ActionInterval.
|
|
float | getSpeed () const |
| | get & set speed, negative speed means playing reverse
|
|
float | getWeight () const |
| | get & set blend weight, weight must positive
|
|
void | setOriginInterval (float interval) |
| | get & set origin interval
|
|
void | setQuality (Animate3DQuality quality) |
| | set animate quality
|
|
Animate3DQuality | getQuality () const |
| | get animate quality
|
|
bool | init (Animation3D *animation) |
| | init method
|
| float | getElapsed () |
| | How many seconds had elapsed since the actions started to run.
|
| void | setAmplitudeRate (float amp) |
| | Sets the amplitude rate, extension in GridAction.
|
| float | getAmplitudeRate () |
| | Gets the amplitude rate, extension in GridAction.
|
| void | step (float dt) override |
|
bool | initWithDuration (float d) |
| | initializes the action
|
◆ create()
create Animate3D
- Parameters
-
| animation | used to generate animate3D |
| fromTime | |
| duration | Time the Animate3D lasts |
- Returns
- Animate3D created using animate
◆ createWithFrames()
| Animate3D * createWithFrames |
( |
Animation3D * | animation, |
|
|
int | startFrame, |
|
|
int | endFrame, |
|
|
float | frameRate = 30.f ) |
|
static |
create Animate3D by frame section, [startFrame, endFrame)
- Parameters
-
| animation | used to generate animate3D |
| startFrame | |
| endFrame | |
| frameRate | default is 30 per second |
- Returns
- Animate3D created using animate
The documentation for this class was generated from the following file: