C# 클래스 Jitter.Dynamics.Contact

상속: IConstraint
파일 보기 프로젝트 열기: tpb3d/TPB3D 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Pool ResourcePool

공개 메소드들

메소드 설명
ApplyImpulse ( Jitter.LinearMath.JVector &impulse ) : void

An impulse is applied an both contact points.

CalculateRelativeVelocity ( ) : Jitter.LinearMath.JVector

Calculates relative velocity of body contact points on the bodies.

Initialize ( RigidBody body1, RigidBody body2, Jitter.LinearMath.JVector &point1, Jitter.LinearMath.JVector &point2, Jitter.LinearMath.JVector &n, float penetration, bool newContact, ContactSettings settings ) : void

Initializes a contact.

Iterate ( ) : void

Solves the contact iteratively.

PrepareForIteration ( float timestep ) : void

PrepareForIteration has to be called before Iterate.

UpdatePosition ( ) : void

The points in wolrd space gets recalculated by transforming the local coordinates. Also new penetration depth is estimated.

메소드 상세

ApplyImpulse() 공개 메소드

An impulse is applied an both contact points.
public ApplyImpulse ( Jitter.LinearMath.JVector &impulse ) : void
impulse Jitter.LinearMath.JVector The impulse to apply.
리턴 void

CalculateRelativeVelocity() 공개 메소드

Calculates relative velocity of body contact points on the bodies.
public CalculateRelativeVelocity ( ) : Jitter.LinearMath.JVector
리턴 Jitter.LinearMath.JVector

Initialize() 공개 메소드

Initializes a contact.
public Initialize ( RigidBody body1, RigidBody body2, Jitter.LinearMath.JVector &point1, Jitter.LinearMath.JVector &point2, Jitter.LinearMath.JVector &n, float penetration, bool newContact, ContactSettings settings ) : void
body1 RigidBody The first body.
body2 RigidBody The second body.
point1 Jitter.LinearMath.JVector The collision point in worldspace
point2 Jitter.LinearMath.JVector The collision point in worldspace
n Jitter.LinearMath.JVector The normal pointing to body2.
penetration float The estimated penetration depth.
newContact bool
settings ContactSettings
리턴 void

Iterate() 공개 메소드

Solves the contact iteratively.
public Iterate ( ) : void
리턴 void

PrepareForIteration() 공개 메소드

PrepareForIteration has to be called before Iterate.
public PrepareForIteration ( float timestep ) : void
timestep float The timestep of the simulation.
리턴 void

UpdatePosition() 공개 메소드

The points in wolrd space gets recalculated by transforming the local coordinates. Also new penetration depth is estimated.
public UpdatePosition ( ) : void
리턴 void

프로퍼티 상세

Pool 공개적으로 정적으로 프로퍼티

A contact resource pool.
public static ResourcePool Pool
리턴 ResourcePool