BoxShape:setDimensions
EditSets the width, height, and depth of the BoxShape.
BoxShape:setDimensions(width, height, depth)
Arguments
Name | Type | Description |
width | number | The width of the box, in meters. |
height | number | The height of the box, in meters. |
depth | number | The depth of the box, in meters. |
Returns
Nothing
Notes
This changes the mass of the shape. If the shape is attached to a collider with automatic mass enabled, the mass properties of the collider will update as well.
Changing shapes can make the physics engine explode since it can cause objects to overlap in unnatural ways.