Api > LuaBehaviour > OnCollisionExit()
LuaBehaviour.OnCollisionExit(Collision other)⚓︎
OnCollisionExit is called when this collider/rigidbody has stopped touching another rigidbody/collider.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
other | Collision | The Collision data associated with this collision. |
Usage⚓︎
local script = LUA.script;
--- OnCollisionExit message from LuaBehaviour
---@param other Collision
function script.OnCollisionExit(other)
-- your code here
end