C# 클래스 Box2D.Dynamics.Fixture

A fixture is used to attach a shape to a body for collision detection. A fixture inherits its transform from its parent. Fixtures hold additional non-geometric data such as friction, collision filters, etc. Fixtures are created via Body::CreateFixture.
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Filter Filter
IsSensor bool
Proxies Box2D.Dynamics.FixtureProxy[]
ProxyCount int

공개 메소드들

메소드 설명
Create ( Body body, FixtureDef def ) : void
CreateProxies ( BroadPhase broadPhase, Transform xf ) : void
Destroy ( ) : void
DestroyProxies ( BroadPhase broadPhase ) : void

Internal method

Dump ( int bodyIndex ) : void

Dump this fixture to the log file.

Fixture ( ) : System
GetAABB ( int childIndex ) : AABB

Get the fixture's AABB. This AABB may be enlarge and/or stale. If you need a more accurate AABB, compute it using the shape and the body transform.

GetMassData ( MassData massData ) : void

Get the mass data for this fixture. The mass data is based on the density and the shape. The rotational inertia is about the shape's origin.

Raycast ( RayCastOutput output, RayCastInput input, int childIndex ) : bool

Cast a ray against this shape.

Refilter ( ) : void

Call this if you want to establish collision that was previously disabled by ContactFilter::ShouldCollide.

TestPoint ( Vec2 p ) : bool

Test a point for containment in this fixture. This only works for convex shapes.

보호된 메소드들

메소드 설명
Synchronize ( BroadPhase broadPhase, Transform transform1, Transform transform2 ) : void

Internal method

메소드 상세

Create() 공개 메소드

public Create ( Body body, FixtureDef def ) : void
body Body
def FixtureDef
리턴 void

CreateProxies() 공개 메소드

public CreateProxies ( BroadPhase broadPhase, Transform xf ) : void
broadPhase Box2D.Collision.Broadphase.BroadPhase
xf Box2D.Common.Transform
리턴 void

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

DestroyProxies() 공개 메소드

Internal method
public DestroyProxies ( BroadPhase broadPhase ) : void
broadPhase Box2D.Collision.Broadphase.BroadPhase
리턴 void

Dump() 공개 메소드

Dump this fixture to the log file.
public Dump ( int bodyIndex ) : void
bodyIndex int
리턴 void

Fixture() 공개 메소드

public Fixture ( ) : System
리턴 System

GetAABB() 공개 메소드

Get the fixture's AABB. This AABB may be enlarge and/or stale. If you need a more accurate AABB, compute it using the shape and the body transform.
public GetAABB ( int childIndex ) : AABB
childIndex int
리턴 Box2D.Collision.AABB

GetMassData() 공개 메소드

Get the mass data for this fixture. The mass data is based on the density and the shape. The rotational inertia is about the shape's origin.
public GetMassData ( MassData massData ) : void
massData Box2D.Collision.Shapes.MassData
리턴 void

Raycast() 공개 메소드

Cast a ray against this shape.
public Raycast ( RayCastOutput output, RayCastInput input, int childIndex ) : bool
output Box2D.Collision.RayCastOutput the ray-cast results.
input Box2D.Collision.RayCastInput the ray-cast input parameters.
childIndex int
리턴 bool

Refilter() 공개 메소드

Call this if you want to establish collision that was previously disabled by ContactFilter::ShouldCollide.
public Refilter ( ) : void
리턴 void

Synchronize() 보호된 메소드

Internal method
protected Synchronize ( BroadPhase broadPhase, Transform transform1, Transform transform2 ) : void
broadPhase Box2D.Collision.Broadphase.BroadPhase
transform1 Box2D.Common.Transform
transform2 Box2D.Common.Transform
리턴 void

TestPoint() 공개 메소드

Test a point for containment in this fixture. This only works for convex shapes.
public TestPoint ( Vec2 p ) : bool
p Box2D.Common.Vec2 a point in world coordinates.
리턴 bool

프로퍼티 상세

Filter 공개적으로 프로퍼티

public Filter,Box2D.Dynamics Filter
리턴 Filter

IsSensor 공개적으로 프로퍼티

public bool IsSensor
리턴 bool

Proxies 공개적으로 프로퍼티

public FixtureProxy[],Box2D.Dynamics Proxies
리턴 Box2D.Dynamics.FixtureProxy[]

ProxyCount 공개적으로 프로퍼티

public int ProxyCount
리턴 int