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,
},