Skip to main content

b2BodyDef

b2BodyDef

Box2D.Dynamics

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.

Inheritance: System.Object

Constructors

b2BodyDef()

b2BodyDef()()

Fields

active(System.Boolean)
allowSleep(System.Boolean)
angle(System.Single)
angularDamping(System.Single)
angularVelocity(System.Single)
awake(System.Boolean)
bullet(System.Boolean)
fixedRotation(System.Boolean)
gravityScale(System.Single)
linearDamping(System.Single)
linearVelocity(Box2D.Common.b2Vec2)
position(Box2D.Common.b2Vec2)
type(Box2D.Dynamics.b2BodyType)
userData(System.Object)

Methods

Defaults()

Defaults()()