PackageBox2D.Dynamics
Classpublic class b2Body



Public Properties
 PropertyDefined by
  e_allowSleepFlag : uint = 0x0010
[static]
b2Body
  e_bulletFlag : uint = 0x0020
[static]
b2Body
  e_dynamicType : uint = 2
[static]
b2Body
  e_fixedRotationFlag : uint = 0x0040
[static]
b2Body
  e_frozenFlag : uint = 0x0002
[static]
b2Body
  e_islandFlag : uint = 0x0004
[static]
b2Body
  e_maxTypes : uint = 3
[static]
b2Body
  e_sleepFlag : uint = 0x0008
[static]
b2Body
  e_staticType : uint = 1
[static]
b2Body
  m_angularDamping : Number
b2Body
  m_angularVelocity : Number
b2Body
  m_contactList : b2ContactEdge
b2Body
  m_flags : uint
b2Body
  m_force : b2Vec2
b2Body
  m_I : Number
b2Body
  m_jointList : b2JointEdge
b2Body
  m_linearDamping : Number
b2Body
  m_linearVelocity : b2Vec2
b2Body
  m_mass : Number
b2Body
  m_next : b2Body
b2Body
  m_prev : b2Body
b2Body
  m_shapeCount : int
b2Body
  m_shapeList : b2Shape
b2Body
  m_sleepTime : Number
b2Body
  m_sweep : b2Sweep
b2Body
  m_torque : Number
b2Body
  m_type : int
b2Body
  m_userData : *
b2Body
  m_world : b2World
b2Body
  m_xf : b2XForm
b2Body
Public Methods
 MethodDefined by
  
b2Body
  
Advance(t:Number):void
b2Body
  
AllowSleeping(flag:Boolean):void
b2Body
  
ApplyForce(force:b2Vec2, point:b2Vec2):void
b2Body
  
ApplyImpulse(impulse:b2Vec2, point:b2Vec2):void
b2Body
  
ApplyTorque(torque:Number):void
b2Body
  
b2Body
  
b2Body
  
GetAngle():Number
b2Body
  
b2Body
  
GetInertia():Number
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
GetMass():Number
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
b2Body
  
IsBullet():Boolean
b2Body
  
IsConnected(other:b2Body):Boolean
b2Body
  
IsDynamic():Boolean
b2Body
  
IsFrozen():Boolean
b2Body
  
IsSleeping():Boolean
b2Body
  
IsStatic():Boolean
b2Body
  
PutToSleep():void
b2Body
  
SetAngularVelocity(omega:Number):void
b2Body
  
SetBullet(flag:Boolean):void
b2Body
  
b2Body
  
SetMass(massData:b2MassData):void
b2Body
  
b2Body
  
SetUserData(data:*):void
b2Body
  
SetXForm(position:b2Vec2, angle:Number):Boolean
b2Body
  
b2Body
  
b2Body
  
WakeUp():void
b2Body
Property detail
e_allowSleepFlagproperty
public static var e_allowSleepFlag:uint = 0x0010
e_bulletFlagproperty 
public static var e_bulletFlag:uint = 0x0020
e_dynamicTypeproperty 
public static var e_dynamicType:uint = 2
e_fixedRotationFlagproperty 
public static var e_fixedRotationFlag:uint = 0x0040
e_frozenFlagproperty 
public static var e_frozenFlag:uint = 0x0002
e_islandFlagproperty 
public static var e_islandFlag:uint = 0x0004
e_maxTypesproperty 
public static var e_maxTypes:uint = 3
e_sleepFlagproperty 
public static var e_sleepFlag:uint = 0x0008
e_staticTypeproperty 
public static var e_staticType:uint = 1
m_angularDampingproperty 
public var m_angularDamping:Number
m_angularVelocityproperty 
public var m_angularVelocity:Number
m_contactListproperty 
public var m_contactList:b2ContactEdge
m_flagsproperty 
public var m_flags:uint
m_forceproperty 
public var m_force:b2Vec2
m_Iproperty 
public var m_I:Number
m_jointListproperty 
public var m_jointList:b2JointEdge
m_linearDampingproperty 
public var m_linearDamping:Number
m_linearVelocityproperty 
public var m_linearVelocity:b2Vec2
m_massproperty 
public var m_mass:Number
m_nextproperty 
public var m_next:b2Body
m_prevproperty 
public var m_prev:b2Body
m_shapeCountproperty 
public var m_shapeCount:int
m_shapeListproperty 
public var m_shapeList:b2Shape
m_sleepTimeproperty 
public var m_sleepTime:Number
m_sweepproperty 
public var m_sweep:b2Sweep
m_torqueproperty 
public var m_torque:Number
m_typeproperty 
public var m_type:int
m_userDataproperty 
public var m_userData:*
m_worldproperty 
public var m_world:b2World
m_xfproperty 
public var m_xf:b2XForm
Constructor detail
b2Body()constructor
public function b2Body(bd:b2BodyDef, world:b2World)Parameters
bd:b2BodyDef
 
world:b2World
Method detail
Advance()method
public function Advance(t:Number):voidParameters
t:Number
AllowSleeping()method 
public function AllowSleeping(flag:Boolean):voidParameters
flag:Boolean
ApplyForce()method 
public function ApplyForce(force:b2Vec2, point:b2Vec2):voidParameters
force:b2Vec2
 
point:b2Vec2
ApplyImpulse()method 
public function ApplyImpulse(impulse:b2Vec2, point:b2Vec2):voidParameters
impulse:b2Vec2
 
point:b2Vec2
ApplyTorque()method 
public function ApplyTorque(torque:Number):voidParameters
torque:Number
CreateShape()method 
public function CreateShape(def:b2ShapeDef):b2ShapeParameters
def:b2ShapeDef

Returns
b2Shape
DestroyShape()method 
public function DestroyShape(s:b2Shape):voidParameters
s:b2Shape
GetAngle()method 
public function GetAngle():Number

Returns
Number
GetAngularVelocity()method 
public function GetAngularVelocity():Number

Returns
Number
GetInertia()method 
public function GetInertia():Number

Returns
Number
GetJointList()method 
public function GetJointList():b2JointEdge

Returns
b2JointEdge
GetLinearVelocity()method 
public function GetLinearVelocity():b2Vec2

Returns
b2Vec2
GetLinearVelocityFromLocalPoint()method 
public function GetLinearVelocityFromLocalPoint(localPoint:b2Vec2):b2Vec2Parameters
localPoint:b2Vec2

Returns
b2Vec2
GetLinearVelocityFromWorldPoint()method 
public function GetLinearVelocityFromWorldPoint(worldPoint:b2Vec2):b2Vec2Parameters
worldPoint:b2Vec2

Returns
b2Vec2
GetLocalCenter()method 
public function GetLocalCenter():b2Vec2

Returns
b2Vec2
GetLocalPoint()method 
public function GetLocalPoint(worldPoint:b2Vec2):b2Vec2Parameters
worldPoint:b2Vec2

Returns
b2Vec2
GetLocalVector()method 
public function GetLocalVector(worldVector:b2Vec2):b2Vec2Parameters
worldVector:b2Vec2

Returns
b2Vec2
GetMass()method 
public function GetMass():Number

Returns
Number
GetNext()method 
public function GetNext():b2Body

Returns
b2Body
GetPosition()method 
public function GetPosition():b2Vec2

Returns
b2Vec2
GetShapeList()method 
public function GetShapeList():b2Shape

Returns
b2Shape
GetUserData()method 
public function GetUserData():*

Returns
*
GetWorld()method 
public function GetWorld():b2World

Returns
b2World
GetWorldCenter()method 
public function GetWorldCenter():b2Vec2

Returns
b2Vec2
GetWorldPoint()method 
public function GetWorldPoint(localPoint:b2Vec2):b2Vec2Parameters
localPoint:b2Vec2

Returns
b2Vec2
GetWorldVector()method 
public function GetWorldVector(localVector:b2Vec2):b2Vec2Parameters
localVector:b2Vec2

Returns
b2Vec2
GetXForm()method 
public function GetXForm():b2XForm

Returns
b2XForm
IsBullet()method 
public function IsBullet():Boolean

Returns
Boolean
IsConnected()method 
public function IsConnected(other:b2Body):BooleanParameters
other:b2Body

Returns
Boolean
IsDynamic()method 
public function IsDynamic():Boolean

Returns
Boolean
IsFrozen()method 
public function IsFrozen():Boolean

Returns
Boolean
IsSleeping()method 
public function IsSleeping():Boolean

Returns
Boolean
IsStatic()method 
public function IsStatic():Boolean

Returns
Boolean
PutToSleep()method 
public function PutToSleep():void
SetAngularVelocity()method 
public function SetAngularVelocity(omega:Number):voidParameters
omega:Number
SetBullet()method 
public function SetBullet(flag:Boolean):voidParameters
flag:Boolean
SetLinearVelocity()method 
public function SetLinearVelocity(v:b2Vec2):voidParameters
v:b2Vec2
SetMass()method 
public function SetMass(massData:b2MassData):voidParameters
massData:b2MassData
SetMassFromShapes()method 
public function SetMassFromShapes():void
SetUserData()method 
public function SetUserData(data:*):voidParameters
data:*
SetXForm()method 
public function SetXForm(position:b2Vec2, angle:Number):BooleanParameters
position:b2Vec2
 
angle:Number

Returns
Boolean
SynchronizeShapes()method 
public function SynchronizeShapes():Boolean

Returns
Boolean
SynchronizeTransform()method 
public function SynchronizeTransform():void
WakeUp()method 
public function WakeUp():void