9#ifndef AVARA3D_EXTENSION_WANDERROTATOR_H
10#define AVARA3D_EXTENSION_WANDERROTATOR_H
48 void chooseNewTarget();
53 float _nextChange {1.0f};
55 math::vec3 _angularVelocity {0.0f, 0.0f, 0.0f};
56 math::vec3 _targetAngularVelocity {0.0f, 0.0f, 0.0f};
A transformable object in a Scene hierarchy.
Applies smoothly varying random rotation to a Node.
float minInterval
Minimum time between target changes, in seconds.
void update(Node &node, float deltaTime)
Advances the rotation by deltaTime seconds and applies it to node.
float maxSpeed
Maximum target angular speed, in radians per second.
float smoothing
Smoothing rate toward target angular velocity; larger values respond faster.
float maxInterval
Maximum time between target changes, in seconds.
float minSpeed
Minimum target angular speed, in radians per second.