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.
Afficher le fichier Open project: iainmckay/idtech4.net Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Copy ( ) : idTraceModel
Résultat idTraceModel

Equals() public méthode

public Equals ( idTraceModel traceModel ) : bool
traceModel idTraceModel
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetMassProperties() public méthode

public GetMassProperties ( float density, float &mass, Vector3 &centerOfMass, Matrix &inertiaTensor ) : void
density float
mass float
centerOfMass Vector3
inertiaTensor Matrix
Résultat void

SetupBox() public méthode

public SetupBox ( idBounds bounds ) : void
bounds idTech4.idBounds
Résultat void

SetupCylinder() public méthode

public SetupCylinder ( idBounds bounds, int sideCount ) : void
bounds idTech4.idBounds
sideCount int
Résultat void

idTraceModel() public méthode

public idTraceModel ( ) : System
Résultat System

idTraceModel() public méthode

Axial bounding box.
public idTraceModel ( idBounds bounds ) : System
bounds idTech4.idBounds
Résultat System

idTraceModel() public méthode

public idTraceModel ( idBounds bounds, int sideCount ) : System
bounds idTech4.idBounds
sideCount int
Résultat System

operator() public static méthode

public static operator ( ) : bool
Résultat bool