Jazz2::Actors::Solid::PinballPaddle class

Pinball paddle.

A flipper found in pinball-themed levels that, when the player lands on it, kicks them upward and away, launching them across the table and awarding score. The launch strength depends on where along the paddle the player landed.

Base classes

class Jazz2::Actors::SolidObjectBase
Base class of a (pushable) solid object.

Public static functions

static void Preload(const ActorActivationDetails& details)
Preloads all assets required by this actor.

Constructors, destructors, conversion operators

PinballPaddle()
Creates a new instance.

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.
void OnUpdateHitbox() override
Called when the hitbox needs to be updated.