C# Class Jitter.Collision.XenoCollide

Implementation of the XenoCollide Algorithm by Gary Snethen. Narrowphase collision detection highly optimized for C#. http://xenocollide.snethen.com/
Afficher le fichier Open project: tpb3d/TPB3D Class Usage Examples

Méthodes publiques

Méthode Description
Detect ( ISupportMappable support1, ISupportMappable support2, Jitter.LinearMath.JMatrix &orientation1, Jitter.LinearMath.JMatrix &orientation2, Jitter.LinearMath.JVector &position1, Jitter.LinearMath.JVector &position2, Jitter.LinearMath.JVector &point, Jitter.LinearMath.JVector &normal, float &penetration ) : bool

Checks two shapes for collisions.

Private Methods

Méthode Description
SupportMapTransformed ( ISupportMappable support, Jitter.LinearMath.JMatrix &orientation, Jitter.LinearMath.JVector &position, Jitter.LinearMath.JVector &direction, Jitter.LinearMath.JVector &result ) : void

Method Details

Detect() public static méthode

Checks two shapes for collisions.
public static Detect ( ISupportMappable support1, ISupportMappable support2, Jitter.LinearMath.JMatrix &orientation1, Jitter.LinearMath.JMatrix &orientation2, Jitter.LinearMath.JVector &position1, Jitter.LinearMath.JVector &position2, Jitter.LinearMath.JVector &point, Jitter.LinearMath.JVector &normal, float &penetration ) : bool
support1 ISupportMappable The SupportMappable implementation of the first shape to test.
support2 ISupportMappable The SupportMappable implementation of the seconds shape to test.
orientation1 Jitter.LinearMath.JMatrix The orientation of the first shape.
orientation2 Jitter.LinearMath.JMatrix The orientation of the second shape.
position1 Jitter.LinearMath.JVector The position of the first shape.
position2 Jitter.LinearMath.JVector The position of the second shape
point Jitter.LinearMath.JVector The pointin world coordinates, where collision occur.
normal Jitter.LinearMath.JVector The normal pointing from body2 to body1.
penetration float Estimated penetration depth of the collision.
Résultat bool