Skip to main content

LuaBehaviour.OnCollisionStay(Collision other)

OnCollisionStay is called once per frame for every collider/rigidbody that is touching rigidbody/collider.

Parameters:

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