C# 클래스 Box2D.Collision.Manifold

A manifold for two touching convex shapes. Box2D supports multiple types of contact:
  • clip point versus plane with radius
  • point versus point with radius (circles)
The local point usage depends on the manifold type:
  • e_circles: the local center of circleA
  • e_faceA: the center of faceA
  • e_faceB: the center of faceB
Similarly the local normal usage:
  • e_circles: not used
  • e_faceA: the normal on polygonA
  • e_faceB: the normal on polygonB
We store contacts in this way so that position correction can account for movement, which is critical for continuous physics. All contact scenarios must be expressed in one of these types. This structure is stored across time steps, so we keep it small.
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
LocalNormal Box2D.Common.Vec2
LocalPoint Box2D.Common.Vec2
PointCount int
Points Box2D.Collision.ManifoldPoint[]
Type ManifoldType

공개 메소드들

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

creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.

Manifold ( Manifold other ) : Box2D.Common

Creates this manifold as a copy of the other

Set ( Manifold cp ) : void

copies this manifold from the given one

메소드 상세

Manifold() 공개 메소드

creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.
public Manifold ( ) : Box2D.Common
리턴 Box2D.Common

Manifold() 공개 메소드

Creates this manifold as a copy of the other
public Manifold ( Manifold other ) : Box2D.Common
other Manifold
리턴 Box2D.Common

Set() 공개 메소드

copies this manifold from the given one
public Set ( Manifold cp ) : void
cp Manifold manifold to copy from
리턴 void

프로퍼티 상세

LocalNormal 공개적으로 프로퍼티

not use for Type::e_points
public Vec2,Box2D.Common LocalNormal
리턴 Box2D.Common.Vec2

LocalPoint 공개적으로 프로퍼티

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

PointCount 공개적으로 프로퍼티

The number of manifold points.
public int PointCount
리턴 int

Points 공개적으로 프로퍼티

The points of contact.
public ManifoldPoint[],Box2D.Collision Points
리턴 Box2D.Collision.ManifoldPoint[]

Type 공개적으로 프로퍼티

public ManifoldType Type
리턴 ManifoldType