lovr.physics.newBoxShape

Creates a new BoxShape.

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

Arguments

NameTypeDefaultDescription
widthnumber1The width of the box, in meters.
heightnumberwidthThe height of the box, in meters.
depthnumberwidthThe depth of the box, in meters.

Returns

NameTypeDescription
boxBoxShapeThe new BoxShape.

Notes

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

See also