TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class ModelCollider in Tinman.AddOns.Models

sealed class ModelCollider  

Public / Attributes

Box

Returns the axis-aligned bounding box of the model.

public property Box { get }
type Box3D
value The bounding box, in model-space.

Mass

Returns the center of mass of the model.

public property Mass { get }
type Vec3D
value The weight of mass, in model-space.

Remarks:

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

Returns the bounding sphere of the model.

public property Sphere { get }
type Sphere
value The bounding sphere, in model-space.

Public / Methods

DistanceTo

public method DistanceTo (Vec3D point)
type float64
params point

PickRay

public method PickRay (Vec3D origin, Vec3D direction, out Vec3D point, out Vec3D normal)
type bool
params origin
  direction
  point
  normal