|
Avara3D 0.2.0
C++ API reference
|
Applies smoothly varying random rotation to a Node. More...
#include <a3d/extension/WanderRotator.h>
Public Member Functions | |
| void | update (Node &node, float deltaTime) |
Advances the rotation by deltaTime seconds and applies it to node. More... | |
Public Attributes | |
| float | minInterval {0.8f} |
| Minimum time between target changes, in seconds. More... | |
| float | maxInterval {2.5f} |
| Maximum time between target changes, in seconds. More... | |
| float | minSpeed {0.5f} |
| Minimum target angular speed, in radians per second. More... | |
| float | maxSpeed {1.0f} |
| Maximum target angular speed, in radians per second. More... | |
| float | smoothing |
| Smoothing rate toward target angular velocity; larger values respond faster. More... | |
Applies smoothly varying random rotation to a Node.
WanderRotator periodically chooses a random angular velocity and smoothly transitions toward it as update() advances.
Definition at line 28 of file WanderRotator.h.
| void a3d::ext::WanderRotator::update | ( | Node & | node, |
| float | deltaTime | ||
| ) |
Advances the rotation by deltaTime seconds and applies it to node.
| float a3d::ext::WanderRotator::maxInterval {2.5f} |
Maximum time between target changes, in seconds.
Definition at line 34 of file WanderRotator.h.
| float a3d::ext::WanderRotator::maxSpeed {1.0f} |
Maximum target angular speed, in radians per second.
Definition at line 36 of file WanderRotator.h.
| float a3d::ext::WanderRotator::minInterval {0.8f} |
Minimum time between target changes, in seconds.
Definition at line 33 of file WanderRotator.h.
| float a3d::ext::WanderRotator::minSpeed {0.5f} |
Minimum target angular speed, in radians per second.
Definition at line 35 of file WanderRotator.h.
| float a3d::ext::WanderRotator::smoothing |
Smoothing rate toward target angular velocity; larger values respond faster.
Definition at line 37 of file WanderRotator.h.