sealed class
|
ModelCollider
|
Returns the axis-aligned bounding box of the model.
public
property
|
Box
{
get
}
|
||
type
|
Box3D
|
||
value
|
The bounding box, in model-space. |
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:
1
Returns the bounding sphere of the model.
public
property
|
Sphere
{
get
}
|
||
type
|
Sphere
|
||
value
|
The bounding sphere, in model-space. |
public
method
|
DistanceTo
(Vec3D point)
|
||
type
|
float64
|
||
params
|
point
|
public
method
|
PickRay
(Vec3D origin,
Vec3D direction,
out Vec3D point,
out Vec3D normal)
|
||
type
|
bool
|
||
params
|
origin
|
||
direction
|
|||
point
|
|||
normal
|