lovr.physics.newBoxShape

Creates a new BoxShape.

box = lovr.physics.newBoxShape(width, height, depth)

Arguments

NameTypeDefaultDescription
widthnumber1 The width of the box, in meters.
heightnumberwidth The height of the box, in meters.
depthnumberwidth The depth of the box, in meters.

Returns

NameTypeDescription
boxBoxShape The new BoxShape.

Notes

A Shape can be attached to a Collider using Collider:addShape.

See also