Box

@ConfigSerializable
data class Box(val halfExtent: DVec3, val margin: Double = 0.0) : Geometry

A cuboid centered around zero defined by its half-extent.

Note: adding a convex margin actually decreases performance on cuboid shapes.

Parameters

halfExtent

The half-lengths of the box. Components must all be greater than 0.

Constructors

Link copied to clipboard
constructor(halfExtent: DVec3, margin: Double = 0.0)

Properties

Link copied to clipboard
val halfExtent: DVec3
Link copied to clipboard
val margin: Double = 0.0