reference monoe.shape

Lua API Reference

Properties

NameTypeDescription
uidintegerUnique ID for the engine-side shape object

monoe.shape.new

Creates a new shape object for collisions. Supports predefined types: `"rectangle:WIDTHxHEIGHT"`, `"circle:RADIUS"`, `"capsule:RADIUSxHEIGHT"`.

Parameters

NameTypeDescription
shapestringShape description

Returns


monoe.shape:debug

Sets a debug outline color for the shape.

Parameters

NameTypeDescription
hexintegerColor in 0xRRGGBBAA format

monoe.shape:remove

Removes the instance from the rendering side.


monoe.shape:shape

Reshapes the actual shape.

Parameters

NameTypeDescription
shapestring

monoe.shape:free

Frees the shape. (won't be usable after that, unless you create a new one)