Contents

struct

SushiEngine::Simulation::ImpactResponse

Describes what an entity does when something hits it hard enough.

Declared in
engine/world/simulation/include/SushiEngine/simulation/physics_body_parameters.hpp

See also

engine/world/simulation/include/PHYSICS.md

Properties

minimum_impulse

Newton-seconds below which nothing happens at all.

full_impulse

At or above this, the response plays at full strength.

cooldown_seconds

Seconds before this entity may respond again.

plays_audio

Retrigger this entity's audio emitter, scaling its gain by the ramp.

emits_particles

Run this entity's particle emitter for particle_seconds.

particle_seconds

How long the particle emitter runs after an impact.