PackageBox2DAS.Dynamics
Classpublic class b2BodyDef
Inheritanceb2BodyDef Inheritance b2Base Inheritance Object



Public Properties
 PropertyDefined By
  active : Boolean
b2BodyDef
  allowSleep : Boolean
b2BodyDef
  angle : Number
b2BodyDef
  angularDamping : Number
b2BodyDef
  angularVelocity : Number
b2BodyDef
  awake : Boolean
b2BodyDef
  bounciness : Number
b2BodyDef
  bullet : Boolean
b2BodyDef
 Inheritedbytes : ByteArray
[static]
b2Base
  fixedRotation : Boolean
b2BodyDef
  friction : Number
b2BodyDef
  groupID : int
b2BodyDef
  ignoreGravity : Boolean
b2BodyDef
  inertiaScale : Number
b2BodyDef
 Inheritedinitialized : Boolean = false
[static]
b2Base
 Inheritedlib : Object
[static]
b2Base
  linearDamping : Number
b2BodyDef
  linearVelocity : b2Vec2
b2BodyDef
 Inheritedloader : CLibInit
[static]
b2Base
  mass : Number
b2BodyDef
 Inheritedmem : MemUser
[static]
b2Base
  position : b2Vec2
b2BodyDef
 Inherited_ptr : Number
b2Base
  type : int
b2BodyDef
  userData : *
b2BodyDef
 Inheritedvalid : Boolean
[read-only] Does the object point to a C++ equivalent (i.e.
b2Base
Public Methods
 MethodDefined By
  
b2BodyDef
  
b2BodyDef
 Inherited
deref(adr:int):*
[static] dereference a C++ pointer or AS3_Val that is pointing to an AS3 object.
b2Base
  
destroy():void
[override]
b2BodyDef
 Inherited
getArr():Array
[static]
b2Base
 Inherited
initialize(defs:Boolean = true):void
[static] Initialize the C++ module.
b2Base
 Inherited
readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array.
b2Base
 Inherited
writeVertices(adr:int, v:Vector.<V2>):void
Write a vertex array of the format [new V2(x,y), new V2(x,y), ...] to C++ memory.
b2Base
Property Detail
activeproperty
active:Boolean


Implementation
    public function get active():Boolean
    public function set active(value:Boolean):void
allowSleepproperty 
allowSleep:Boolean


Implementation
    public function get allowSleep():Boolean
    public function set allowSleep(value:Boolean):void
angleproperty 
angle:Number


Implementation
    public function get angle():Number
    public function set angle(value:Number):void
angularDampingproperty 
angularDamping:Number


Implementation
    public function get angularDamping():Number
    public function set angularDamping(value:Number):void
angularVelocityproperty 
angularVelocity:Number


Implementation
    public function get angularVelocity():Number
    public function set angularVelocity(value:Number):void
awakeproperty 
awake:Boolean


Implementation
    public function get awake():Boolean
    public function set awake(value:Boolean):void
bouncinessproperty 
public var bounciness:Number

bulletproperty 
bullet:Boolean


Implementation
    public function get bullet():Boolean
    public function set bullet(value:Boolean):void
fixedRotationproperty 
fixedRotation:Boolean


Implementation
    public function get fixedRotation():Boolean
    public function set fixedRotation(value:Boolean):void
frictionproperty 
public var friction:Number

groupIDproperty 
groupID:int


Implementation
    public function get groupID():int
    public function set groupID(value:int):void
ignoreGravityproperty 
ignoreGravity:Boolean


Implementation
    public function get ignoreGravity():Boolean
    public function set ignoreGravity(value:Boolean):void
inertiaScaleproperty 
inertiaScale:Number


Implementation
    public function get inertiaScale():Number
    public function set inertiaScale(value:Number):void
linearDampingproperty 
linearDamping:Number


Implementation
    public function get linearDamping():Number
    public function set linearDamping(value:Number):void
linearVelocityproperty 
public var linearVelocity:b2Vec2

massproperty 
public var mass:Number

positionproperty 
public var position:b2Vec2

typeproperty 
type:int


Implementation
    public function get type():int
    public function set type(value:int):void
userDataproperty 
public var userData:*

Constructor Detail
b2BodyDef()Constructor
public function b2BodyDef()



Method Detail
create()method
public function create(w:b2World):b2Body

Parameters

w:b2World

Returns
b2Body
destroy()method 
override public function destroy():void