LuaBehaviour.OnCollisionEnter(Collision other)
OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider.
Parameters:
Name | Type | Description |
---|---|---|
other | Collision | The 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