C# 클래스 Project290.Physics.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: -ShapeType.Circles: the local center of circleA -SeparationFunction.FaceA: the center of faceA -SeparationFunction.FaceB: the center of faceB Similarly the local normal usage: -ShapeType.Circles: not used -SeparationFunction.FaceA: the normal on polygonA -SeparationFunction.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.
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
LocalNormal Vector2
LocalPoint Vector2
PointCount int
Points FixedArray2
Type ManifoldType

프로퍼티 상세

LocalNormal 공개적으로 프로퍼티

Not use for Type.SeparationFunction.Points
public Vector2 LocalNormal
리턴 Vector2

LocalPoint 공개적으로 프로퍼티

Usage depends on manifold type
public Vector2 LocalPoint
리턴 Vector2

PointCount 공개적으로 프로퍼티

The number of manifold points
public int PointCount
리턴 int

Points 공개적으로 프로퍼티

The points of contact
public FixedArray2 Points
리턴 FixedArray2

Type 공개적으로 프로퍼티

public ManifoldType Type
리턴 ManifoldType