C# 클래스 Box2D.Dynamics.BodyDef

A body definition holds all the data needed to construct a rigid body. You can safely re-use body definitions. Shapes are added to a body after construction.
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Active bool
AllowSleep bool
Angle float
AngularDamping float
AngularVelocity float
Awake bool
Bullet bool
FixedRotation bool
GravityScale float
LinearDamping float
LinearVelocity Box2D.Common.Vec2
Position Box2D.Common.Vec2
Type BodyType
UserData object

공개 메소드들

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

메소드 상세

BodyDef() 공개 메소드

public BodyDef ( ) : Box2D.Common
리턴 Box2D.Common

프로퍼티 상세

Active 공개적으로 프로퍼티

Does this body start out active?
public bool Active
리턴 bool

AllowSleep 공개적으로 프로퍼티

Set this flag to false if this body should never fall asleep. Note that this increases CPU usage.
public bool AllowSleep
리턴 bool

Angle 공개적으로 프로퍼티

The world angle of the body in radians.
public float Angle
리턴 float

AngularDamping 공개적으로 프로퍼티

Angular damping is use to reduce the angular velocity. The damping parameter can be larger than 1.0f but the damping effect becomes sensitive to the time step when the damping parameter is large.
public float AngularDamping
리턴 float

AngularVelocity 공개적으로 프로퍼티

The angular velocity of the body.
public float AngularVelocity
리턴 float

Awake 공개적으로 프로퍼티

Is this body initially sleeping?
public bool Awake
리턴 bool

Bullet 공개적으로 프로퍼티

Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies.
public bool Bullet
리턴 bool

FixedRotation 공개적으로 프로퍼티

Should this body be prevented from rotating? Useful for characters.
public bool FixedRotation
리턴 bool

GravityScale 공개적으로 프로퍼티

Experimental: scales the inertia tensor.
public float GravityScale
리턴 float

LinearDamping 공개적으로 프로퍼티

Linear damping is use to reduce the linear velocity. The damping parameter can be larger than 1.0f but the damping effect becomes sensitive to the time step when the damping parameter is large.
public float LinearDamping
리턴 float

LinearVelocity 공개적으로 프로퍼티

The linear velocity of the body in world co-ordinates.
public Vec2,Box2D.Common LinearVelocity
리턴 Box2D.Common.Vec2

Position 공개적으로 프로퍼티

The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes.
public Vec2,Box2D.Common Position
리턴 Box2D.Common.Vec2

Type 공개적으로 프로퍼티

The body type: static, kinematic, or dynamic. Note: if a dynamic body would have zero mass, the mass is set to one.
public BodyType Type
리턴 BodyType

UserData 공개적으로 프로퍼티

Use this to store application specific body data.
public object UserData
리턴 object