Properties
| Name | Type | Description |
|---|---|---|
uid | integer | Unique 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
| Name | Type | Description |
|---|---|---|
shape | string | Shape description |
Returns
monoe.shape
monoe.shape:debug
Sets a debug outline color for the shape.
Parameters
| Name | Type | Description |
|---|---|---|
hex | integer | Color in 0xRRGGBBAA format |
monoe.shape:remove
Removes the instance from the rendering side.
monoe.shape:shape
Reshapes the actual shape.
Parameters
| Name | Type | Description |
|---|---|---|
shape | string |
monoe.shape:free
Frees the shape. (won't be usable after that, unless you create a new one)