ISpatialBounds

Description

interface Tinman.Engine.Models.ISpatialBounds

Extended by

IModelCollider

Base interface for classes that provide common spatial bounding volumes for 3D models.

Public / Attributes

Box


public attribute Box → (get)

value : Box3D

The bounding box, in model-space.

Returns the axis-aligned bounding box of the model.

Mass


public attribute Mass → (get)

value : Vec3D

The weight of mass, in model-space.

Returns the center of mass of the model.

The center of mass is computed from the weighted sum of those model vertices that are used by primitives, with the following weights being assigned to each vertex:

Sphere


public attribute Sphere → (get)

value : Sphere

The bounding sphere, in model-space.

Returns the bounding sphere of the model.