C# 클래스 Jitter.Collision.XenoCollide

Implementation of the XenoCollide Algorithm by Gary Snethen. Narrowphase collision detection highly optimized for C#. http://xenocollide.snethen.com/
파일 보기 프로젝트 열기: tpb3d/TPB3D 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
SupportMapTransformed ( ISupportMappable support, Jitter.LinearMath.JMatrix &orientation, Jitter.LinearMath.JVector &position, Jitter.LinearMath.JVector &direction, Jitter.LinearMath.JVector &result ) : void

메소드 상세

Detect() 공개 정적인 메소드

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.
리턴 bool