Pass:box

Edit

Draw a box. This is like Pass:cube, except it takes 3 separate values for the scale.




Arguments

NameTypeDefaultDescription
xnumber0 The x coordinate of the center of the box.
ynumber0 The y coordinate of the center of the box.
znumber0 The z coordinate of the center of the box.
widthnumber1 The width of the box.
heightnumber1 The height of the box.
depthnumber1 The depth of the box.
anglenumber0 The rotation of the box around its rotation axis, in radians.
axnumber0 The x component of the axis of rotation.
aynumber1 The y component of the axis of rotation.
aznumber0 The z component of the axis of rotation.
styleDrawStyle'fill' Whether the box should be drawn filled or outlined.

Returns

Nothing

Arguments

NameTypeDefaultDescription
positionVec3 The position of the box.
sizeVec3 The size of the box.
orientationQuat The orientation of the box.
styleDrawStyle'fill' Whether the box should be drawn filled or outlined.

Returns

Nothing

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the box.
styleDrawStyle'fill' Whether the box should be drawn filled or outlined.

Returns

Nothing

See also