LuaBehaviour.OnCollisionStay(Collision other)
OnCollisionStay is called once per frame for every collider/rigidbody that is touching rigidbody/collider.
Parameters:
Name | Type | Description |
---|---|---|
other | Collision | The Collision data associated with this collision event. |
Usage
local script = LUA.script;
--- OnCollisionStay message from LuaBehaviour
---@param other Collision
function script.OnCollisionStay(other)
-- your code here
end