Skip to main content

LuaBehaviour.OnCollisionEnter(Collision other)

OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider.

Parameters:

NameTypeDescription
otherCollisionThe Collision data associated with this collision event.

Usage

local script = LUA.script;

--- OnCollisionEnter message from LuaBehaviour
---@param other Collision
function script.OnCollisionEnter(other)
-- your code here
end