Moth class
#include <Jazz2/Actors/Environment/Moth.h>
Moth.
Small decorative moth that rests on surfaces until a player brushes against it, at which point it flutters away in a randomized direction before settling again. It is purely ambient and does not harm the player.
Base classes
- class Jazz2::Actors::ActorBase
- Base class of an object.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
- Moth()
- Creates a new instance.
Public functions
- auto OnHandleCollision(ActorBase* other) -> bool override
- Called when the object collides with another object.
Protected functions
- auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
- Called when the object is created and activated.
- void OnUpdate(float timeMult) override
- Called every frame to update the object state.