C# 클래스 Box2DX.Dynamics.BodyDef

A body definition holds all the data needed to construct a rigid body. You can safely re-use body definitions.
파일 보기 프로젝트 열기: KrugerHeavyIndustries/box2d-unity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AllowSleep bool
Angle float
AngularDamping float
AngularVelocity float
FixedRotation bool
IsBullet bool
IsSleeping bool
LinearDamping float
LinearVelocity System.Vector2
MassData Box2DX.Collision.MassData
Position System.Vector2
UserData object

공개 메소드들

메소드 설명
BodyDef ( byte init ) : System

This constructor sets the body definition default values.

메소드 상세

BodyDef() 공개 메소드

This constructor sets the body definition default values.
public BodyDef ( byte init ) : System
init byte
리턴 System

프로퍼티 상세

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 공개적으로 프로퍼티

public float AngularVelocity
리턴 float

FixedRotation 공개적으로 프로퍼티

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

IsBullet 공개적으로 프로퍼티

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 static bodies. @warning You should use this flag sparingly since it increases processing time.
public bool IsBullet
리턴 bool

IsSleeping 공개적으로 프로퍼티

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

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 공개적으로 프로퍼티

public Vector2,System LinearVelocity
리턴 System.Vector2

MassData 공개적으로 프로퍼티

You can use this to initialized the mass properties of the body. If you prefer, you can set the mass properties after the shapes have been added using Body.SetMassFromShapes.
public MassData,Box2DX.Collision MassData
리턴 Box2DX.Collision.MassData

Position 공개적으로 프로퍼티

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

UserData 공개적으로 프로퍼티

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