C# 클래스 Box2D.Collision.ManifoldPoint

A manifold point is a contact point belonging to a contact manifold. It holds details related to the geometry and dynamics of the contact points. The local point usage depends on the manifold type:
  • e_circles: the local center of circleB
  • e_faceA: the local center of cirlceB or the clip point of polygonB
  • e_faceB: the clip point of polygonA
This structure is stored across time steps, so we keep it small.
Note: the impulses are used for internal caching and may not provide reliable contact forces, especially for high speed collisions.
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Id ContactID
LocalPoint Box2D.Common.Vec2
NormalImpulse float
TangentImpulse float

공개 메소드들

메소드 설명
ManifoldPoint ( ) : Box2D.Common

Blank manifold point with everything zeroed out.

ManifoldPoint ( ManifoldPoint cp ) : Box2D.Common

Creates a manifold point as a copy of the given point

Set ( ManifoldPoint cp ) : void

Sets this manifold point form the given one

메소드 상세

ManifoldPoint() 공개 메소드

Blank manifold point with everything zeroed out.
public ManifoldPoint ( ) : Box2D.Common
리턴 Box2D.Common

ManifoldPoint() 공개 메소드

Creates a manifold point as a copy of the given point
public ManifoldPoint ( ManifoldPoint cp ) : Box2D.Common
cp ManifoldPoint point to copy from
리턴 Box2D.Common

Set() 공개 메소드

Sets this manifold point form the given one
public Set ( ManifoldPoint cp ) : void
cp ManifoldPoint the point to copy from
리턴 void

프로퍼티 상세

Id 공개적으로 프로퍼티

uniquely identifies a contact point between two shapes
public ContactID Id
리턴 ContactID

LocalPoint 공개적으로 프로퍼티

usage depends on manifold type
public Vec2,Box2D.Common LocalPoint
리턴 Box2D.Common.Vec2

NormalImpulse 공개적으로 프로퍼티

the non-penetration impulse
public float NormalImpulse
리턴 float

TangentImpulse 공개적으로 프로퍼티

the friction impulse
public float TangentImpulse
리턴 float