C# Class idTech4.Collision.idTraceModel

A trace model is an arbitrary polygonal model which is used by the collision detection system to find collisions, contacts or the contents of a volume. For collision detection speed reasons the number of vertices and edges are limited. The trace model can have any shape. However convex models are usually preferred.
Show file Open project: iainmckay/idtech4.net Class Usage Examples

Public Methods

Method Description
Copy ( ) : idTraceModel
Equals ( idTraceModel traceModel ) : bool
Equals ( object obj ) : bool
GetMassProperties ( float density, float &mass, Vector3 &centerOfMass, Matrix &inertiaTensor ) : void
SetupBox ( idBounds bounds ) : void
SetupCylinder ( idBounds bounds, int sideCount ) : void
idTraceModel ( ) : System
idTraceModel ( idBounds bounds ) : System

Axial bounding box.

idTraceModel ( idBounds bounds, int sideCount ) : System
operator ( ) : bool

Private Methods

Method Description
GenerateEdgeNormals ( ) : int
GetPolygonIntegrals ( int polyNumber, int a, int b, int c ) : PolygonIntegrals
GetProjectionIntegrals ( int polyNumber, int a, int b ) : ProjectionIntegrals
GetVolumeIntegrals ( ) : VolumeIntegrals
InitBox ( ) : void
VolumeFromPolygon ( float thickness ) : idTraceModel

Method Details

Copy() public method

public Copy ( ) : idTraceModel
return idTraceModel

Equals() public method

public Equals ( idTraceModel traceModel ) : bool
traceModel idTraceModel
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetMassProperties() public method

public GetMassProperties ( float density, float &mass, Vector3 &centerOfMass, Matrix &inertiaTensor ) : void
density float
mass float
centerOfMass Vector3
inertiaTensor Matrix
return void

SetupBox() public method

public SetupBox ( idBounds bounds ) : void
bounds idTech4.idBounds
return void

SetupCylinder() public method

public SetupCylinder ( idBounds bounds, int sideCount ) : void
bounds idTech4.idBounds
sideCount int
return void

idTraceModel() public method

public idTraceModel ( ) : System
return System

idTraceModel() public method

Axial bounding box.
public idTraceModel ( idBounds bounds ) : System
bounds idTech4.idBounds
return System

idTraceModel() public method

public idTraceModel ( idBounds bounds, int sideCount ) : System
bounds idTech4.idBounds
sideCount int
return System

operator() public static method

public static operator ( ) : bool
return bool