C# 클래스 FarseerPhysics.Dynamics.Contacts.Contact

The public class manages contact between two shapes. A contact exists for each overlapping AABB in the broad-phase (except if filtered). Therefore a contact object may exist that has no contact points.
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
enabled bool
fixtureA Fixture
fixtureB Fixture
friction float
manifold FarseerPhysics.Collision.Manifold
restitution float
tangentSpeed float

공개 메소드들

메소드 설명
Contact ( Fixture fA, int indexA, Fixture fB, int indexB ) : System.Collections.Generic
evaluate ( Manifold &manifold, Transform &transformA, Transform &transformB ) : void

Evaluate this contact with your own manifold and transforms.

getWorldManifold ( System.Vector2 &normal, FixedArray2 &points ) : void

Gets the world manifold.

reset ( Fixture fA, int indexA, Fixture fB, int indexB ) : void
resetFriction ( ) : void
resetRestitution ( ) : void

비공개 메소드들

메소드 설명
create ( Fixture fixtureA, int indexA, Fixture fixtureB, int indexB ) : Contact
destroy ( ) : void
update ( ContactManager contactManager ) : void

Update the contact manifold and touching status. Note: do not assume the fixture AABBs are overlapping or are valid.

메소드 상세

Contact() 공개 메소드

public Contact ( Fixture fA, int indexA, Fixture fB, int indexB ) : System.Collections.Generic
fA Fixture
indexA int
fB Fixture
indexB int
리턴 System.Collections.Generic

evaluate() 공개 메소드

Evaluate this contact with your own manifold and transforms.
public evaluate ( Manifold &manifold, Transform &transformA, Transform &transformB ) : void
manifold FarseerPhysics.Collision.Manifold The manifold.
transformA Transform The first transform.
transformB Transform The second transform.
리턴 void

getWorldManifold() 공개 메소드

Gets the world manifold.
public getWorldManifold ( System.Vector2 &normal, FixedArray2 &points ) : void
normal System.Vector2
points FixedArray2
리턴 void

reset() 공개 메소드

public reset ( Fixture fA, int indexA, Fixture fB, int indexB ) : void
fA Fixture
indexA int
fB Fixture
indexB int
리턴 void

resetFriction() 공개 메소드

public resetFriction ( ) : void
리턴 void

resetRestitution() 공개 메소드

public resetRestitution ( ) : void
리턴 void

프로퍼티 상세

enabled 공개적으로 프로퍼티

Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is only disabled for the current time step (or sub-step in continuous collisions). NOTE: If you are setting Enabled to a constant true or false, use the explicit Enable() or Disable() functions instead to save the CPU from doing a branch operation.
public bool enabled
리턴 bool

fixtureA 공개적으로 프로퍼티

public Fixture fixtureA
리턴 Fixture

fixtureB 공개적으로 프로퍼티

public Fixture fixtureB
리턴 Fixture

friction 공개적으로 프로퍼티

public float friction
리턴 float

manifold 공개적으로 프로퍼티

Get the contact manifold. Do not modify the manifold unless you understand the internals of Box2D.
public Manifold,FarseerPhysics.Collision manifold
리턴 FarseerPhysics.Collision.Manifold

restitution 공개적으로 프로퍼티

public float restitution
리턴 float

tangentSpeed 공개적으로 프로퍼티

public float tangentSpeed
리턴 float