Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Evento Condiviso

Prop.Hit

Triggered when this Prop hits something

Non ancora tradotto

Sintassi

Lua
Prop.Subscribe("Hit", function(self, impact_force, normal_impulse, impact_location, velocity, other_actor)
    -- il tuo codice
end)

Argomenti

Nome Tipo Predefinito Descrizione
self Prop — The prop which has been hit
impact_force float — The intensity of the Hit normalized by the Prop's weight
normal_impulse Vector — The impulse direction it hits
impact_location Vector — The world 3D location of the impact
velocity Vector — The Prop velocity at the moment it hits
other_actor facoltativo Actor? — The other actor that hit this Prop