13 void update(
float dt)
override;
14 bool isDone()
const override;
float toAngle(Orientation orientation)
Returns the Y rotation angle (degrees) for a given orientation.
Interface for entity visual behaviors (movement, rotation, animations, etc.). Behaviors are ticked ev...
Interpolates an entity's visual angle from one value to another over a specified duration.
void update(float dt) override
float getDuration() const override
Total duration of this behavior in seconds.
bool isDone() const override
Returns true when the behavior has completed and can be removed.
static float _smoothstep(float t)
float minDuration() const override
Minimum duration below which this behavior is skipped entirely.
Visual-only state for an entity, driven by behaviors each frame. Logical state (x,...