lovr.physics.newBoxShape
EditCreates a new BoxShape.
box = lovr.physics.newBoxShape(width, height, depth)
Arguments
Name | Type | Default | Description |
width | number | 1 | The width of the box, in meters. |
height | number | width | The height of the box, in meters. |
depth | number | width | The depth of the box, in meters. |
Returns
Name | Type | Description |
box | BoxShape | The new BoxShape. |
Notes
A Shape can be attached to a Collider using Collider:addShape
.