Skip to main content

LuaBehaviour.OnCollisionExit(Collision other)

OnCollisionExit is called when this collider/rigidbody has stopped touching another rigidbody/collider.

Parameters:

NameTypeDescription
otherCollisionThe 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