Event
Pickable.Hit
When this Pickable hits something
Syntax
Pickable.Subscribe("Hit", function(self, impact_force, normal_impulse, impact_location, velocity, other_actor)
-- il tuo codice
end)
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
self
|
Pickable | — | The Actor that was hit |
impact_force
|
float | — | The intensity of the hit normalized by the Pickable's weight |
normal_impulse
|
Vector | — | The impulse direction of the hit |
impact_location
|
Vector | — | The world space location of the impact |
velocity
|
Vector | — | The Pickable's velocity at the moment it hit |
other_actor
optional
|
Actor? | — | The other actor that hit this Pickable |