1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Expose collided objects in moveresult

closes #9787
This commit is contained in:
sfan5 2020-04-26 22:52:00 +02:00
parent cb159f8d8a
commit b6b80f55c8
4 changed files with 31 additions and 14 deletions

View file

@ -6632,6 +6632,7 @@ Collision info passed to `on_step`:
type = string, -- "node" or "object",
axis = string, -- "x", "y" or "z"
node_pos = vector, -- if type is "node"
object = ObjectRef, -- if type is "object"
old_velocity = vector,
new_velocity = vector,
},