box

fun box(width: Float, height: Float, across: Int, down: Int, coreMass: Float): SoftBodyShape(source)

Returns a box width by height, its ring across segments along the top and bottom and down along each side, with the core in the middle. Pass the counts by name.

Throws

if a side is not more than 0, there are fewer than 1 segment a side, or coreMass is not more than 0.