createBox

@JvmStatic
fun createBox(size: Vector3): ShapeResource

Creates a box-shaped ShapeResource with the specified dimensions.

Return

A new ShapeResource representing the box.

Parameters

size

The size of the box as a Vector3, where each component (x, y, z) represents the length along the corresponding axis in meters.