Property | Defined By | ||
---|---|---|---|
bytes : ByteArray [static] | b2Base | ||
groupID : int | b2Body | ||
initialized : Boolean = false [static] | b2Base | ||
lib : Object [static] | b2Base | ||
loader : CLibInit [static] | b2Base | ||
m_angularDamping : Number | b2Body | ||
m_angularVelocity : Number | b2Body | ||
m_controllers : Dictionary | b2Body | ||
mem : MemUser [static] | b2Base | ||
m_fixtureCount : int | b2Body | ||
m_fixtureList : b2Fixture | b2Body | ||
m_flags : int | b2Body | ||
m_force : b2Vec2 | b2Body | ||
m_I : Number | b2Body | ||
m_invI : Number | b2Body | ||
m_invMass : Number | b2Body | ||
m_islandIndex : int | b2Body | ||
m_linearDamping : Number | b2Body | ||
m_linearVelocity : b2Vec2 | b2Body | ||
m_mass : Number | b2Body | ||
m_next : b2Body | b2Body | ||
m_prev : b2Body | 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 : b2Transform | b2Body | ||
_ptr : Number | b2Base | ||
valid : Boolean [read-only]
Does the object point to a C++ equivalent (i.e. | b2Base |
Method | Defined By | ||
---|---|---|---|
b2Body | |||
b2Body | |||
b2Body | |||
ApplyTorque(torque:Number):void | b2Body | ||
b2Body | |||
b2Body | |||
deref(adr:int):* [static]
dereference a C++ pointer or AS3_Val that is pointing to an AS3 object. | b2Base | ||
destroy():void [override] | b2Body | ||
DestroyFixture(fixture:b2Fixture):void | b2Body | ||
GetAngle():Number | b2Body | ||
GetAngularDamping():Number | b2Body | ||
GetAngularVelocity():Number | b2Body | ||
getArr():Array [static] | b2Base | ||
b2Body | |||
b2Body | |||
GetInertia():Number | b2Body | ||
b2Body | |||
GetLinearDamping():Number | b2Body | ||
b2Body | |||
b2Body | |||
b2Body | |||
b2Body | |||
b2Body | |||
b2Body | |||
GetMass():Number | b2Body | ||
GetMassData(data:b2MassData):void | b2Body | ||
b2Body | |||
b2Body | |||
b2Body | |||
GetType():int | b2Body | ||
GetUserData():* | b2Body | ||
b2Body | |||
b2Body | |||
b2Body | |||
b2Body | |||
initialize(defs:Boolean = true):void [static]
Initialize the C++ module. | b2Base | ||
IsActive():Boolean | b2Body | ||
IsAlwaysActive():Boolean | b2Body | ||
IsAwake():Boolean | b2Body | ||
IsBullet():Boolean | b2Body | ||
IsDynamic():Boolean | b2Body | ||
IsFixedRotation():Boolean | b2Body | ||
IsIgnoringGravity():Boolean | b2Body | ||
IsKinematic():Boolean | b2Body | ||
IsSleepingAllowed():Boolean | b2Body | ||
IsStatic():Boolean | b2Body | ||
readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array. | b2Base | ||
ResetMassData():void | b2Body | ||
SetActive(flag:Boolean):void | b2Body | ||
SetAlwaysActive(flag:Boolean):void | b2Body | ||
SetAngle(angle:Number):void | b2Body | ||
SetAngularDamping(angularDamping:Number):void | b2Body | ||
SetAngularVelocity(omega:Number):void | b2Body | ||
SetAwake(flag:Boolean):void | b2Body | ||
SetBounciness(bounciness:Number):void | b2Body | ||
SetBullet(flag:Boolean):void | b2Body | ||
SetFixedRotation(flag:Boolean):void | b2Body | ||
SetFriction(friction:Number):void | b2Body | ||
SetIgnoreGravity(flag:Boolean):void | b2Body | ||
SetLinearDamping(linearDamping:Number):void | b2Body | ||
SetLinearVelocity(v:V2):void | b2Body | ||
SetMassData(data:b2MassData):void | b2Body | ||
SetPosition(position:V2):void | b2Body | ||
SetSleepingAllowed(flag:Boolean):void | b2Body | ||
SetTransform(position:V2, angle:Number):void | b2Body | ||
SetType(type:int):void | b2Body | ||
SetUserData(data:*):void | b2Body | ||
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 |
Constant | Defined By | ||
---|---|---|---|
b2_dynamicBody : int = 2 [static] | b2Body | ||
b2_kinematicBody : int = 1 [static] | b2Body | ||
b2_staticBody : int = 0 [static] | b2Body | ||
e_activeFlag : int = 0x0020 [static] | b2Body | ||
e_alwaysActiveFlag : int = 0x0100 [static] | b2Body | ||
e_autoSleepFlag : int = 0x0004 [static] | b2Body | ||
e_awakeFlag : int = 0x0002 [static] | b2Body | ||
e_bulletFlag : int = 0x0008 [static] | b2Body | ||
e_fixedRotationFlag : int = 0x0010 [static] | b2Body | ||
e_ignoreGravityFlag : int = 0x0080 [static] | b2Body | ||
e_islandFlag : int = 0x0001 [static] | b2Body |
groupID | property |
groupID:int
public function get groupID():int
public function set groupID(value:int):void
m_angularDamping | property |
m_angularDamping:Number
public function get m_angularDamping():Number
public function set m_angularDamping(value:Number):void
m_angularVelocity | property |
m_angularVelocity:Number
public function get m_angularVelocity():Number
public function set m_angularVelocity(value:Number):void
m_controllers | property |
public var m_controllers:Dictionary
m_fixtureCount | property |
m_fixtureCount:int
public function get m_fixtureCount():int
public function set m_fixtureCount(value:int):void
m_fixtureList | property |
public var m_fixtureList:b2Fixture
m_flags | property |
m_flags:int
public function get m_flags():int
public function set m_flags(value:int):void
m_force | property |
public var m_force:b2Vec2
m_I | property |
m_I:Number
public function get m_I():Number
public function set m_I(value:Number):void
m_invI | property |
m_invI:Number
public function get m_invI():Number
public function set m_invI(value:Number):void
m_invMass | property |
m_invMass:Number
public function get m_invMass():Number
public function set m_invMass(value:Number):void
m_islandIndex | property |
m_islandIndex:int
public function get m_islandIndex():int
public function set m_islandIndex(value:int):void
m_linearDamping | property |
m_linearDamping:Number
public function get m_linearDamping():Number
public function set m_linearDamping(value:Number):void
m_linearVelocity | property |
public var m_linearVelocity:b2Vec2
m_mass | property |
m_mass:Number
public function get m_mass():Number
public function set m_mass(value:Number):void
m_next | property |
public var m_next:b2Body
m_prev | property |
public var m_prev:b2Body
m_sleepTime | property |
m_sleepTime:Number
public function get m_sleepTime():Number
public function set m_sleepTime(value:Number):void
m_sweep | property |
public var m_sweep:b2Sweep
m_torque | property |
m_torque:Number
public function get m_torque():Number
public function set m_torque(value:Number):void
m_type | property |
m_type:int
public function get m_type():int
public function set m_type(value:int):void
m_userData | property |
public var m_userData:*
m_world | property |
public var m_world:b2World
m_xf | property |
public var m_xf:b2Transform
b2Body | () | Constructor |
public function b2Body(w:b2World, d:b2BodyDef = null)
w:b2World | |
d:b2BodyDef (default = null )
|
ApplyForce | () | method |
ApplyImpulse | () | method |
ApplyTorque | () | method |
public function ApplyTorque(torque:Number):void
Parameters
torque:Number |
CreateFixture | () | method |
public function CreateFixture(def:b2FixtureDef):b2Fixture
Parameters
def:b2FixtureDef |
b2Fixture |
CreateFixtureShape | () | method |
public function CreateFixtureShape(shape:b2Shape, density:Number):b2Fixture
Parameters
shape:b2Shape | |
density:Number |
b2Fixture |
destroy | () | method |
override public function destroy():void
DestroyFixture | () | method |
GetAngle | () | method |
public function GetAngle():Number
ReturnsNumber |
GetAngularDamping | () | method |
public function GetAngularDamping():Number
ReturnsNumber |
GetAngularVelocity | () | method |
public function GetAngularVelocity():Number
ReturnsNumber |
GetContactList | () | method |
GetFixtureList | () | method |
GetInertia | () | method |
public function GetInertia():Number
ReturnsNumber |
GetJointList | () | method |
GetLinearDamping | () | method |
public function GetLinearDamping():Number
ReturnsNumber |
GetLinearVelocity | () | method |
GetLinearVelocityFromLocalPoint | () | method |
GetLinearVelocityFromWorldPoint | () | method |
GetLocalCenter | () | method |
GetLocalPoint | () | method |
GetLocalVector | () | method |
GetMass | () | method |
public function GetMass():Number
ReturnsNumber |
GetMassData | () | method |
GetNext | () | method |
GetPosition | () | method |
GetTransform | () | method |
GetType | () | method |
public function GetType():int
Returnsint |
GetUserData | () | method |
public function GetUserData():*
Returns* |
GetWorld | () | method |
GetWorldCenter | () | method |
GetWorldPoint | () | method |
GetWorldVector | () | method |
IsActive | () | method |
public function IsActive():Boolean
ReturnsBoolean |
IsAlwaysActive | () | method |
public function IsAlwaysActive():Boolean
ReturnsBoolean |
IsAwake | () | method |
public function IsAwake():Boolean
ReturnsBoolean |
IsBullet | () | method |
public function IsBullet():Boolean
ReturnsBoolean |
IsDynamic | () | method |
public function IsDynamic():Boolean
ReturnsBoolean |
IsFixedRotation | () | method |
public function IsFixedRotation():Boolean
ReturnsBoolean |
IsIgnoringGravity | () | method |
public function IsIgnoringGravity():Boolean
ReturnsBoolean |
IsKinematic | () | method |
public function IsKinematic():Boolean
ReturnsBoolean |
IsSleepingAllowed | () | method |
public function IsSleepingAllowed():Boolean
ReturnsBoolean |
IsStatic | () | method |
public function IsStatic():Boolean
ReturnsBoolean |
ResetMassData | () | method |
public function ResetMassData():void
SetActive | () | method |
public function SetActive(flag:Boolean):void
Parameters
flag:Boolean |
SetAlwaysActive | () | method |
public function SetAlwaysActive(flag:Boolean):void
Parameters
flag:Boolean |
SetAngle | () | method |
public function SetAngle(angle:Number):void
Parameters
angle:Number |
SetAngularDamping | () | method |
public function SetAngularDamping(angularDamping:Number):void
Parameters
angularDamping:Number |
SetAngularVelocity | () | method |
public function SetAngularVelocity(omega:Number):void
Parameters
omega:Number |
SetAwake | () | method |
public function SetAwake(flag:Boolean):void
Parameters
flag:Boolean |
SetBounciness | () | method |
public function SetBounciness(bounciness:Number):void
Parameters
bounciness:Number |
SetBullet | () | method |
public function SetBullet(flag:Boolean):void
Parameters
flag:Boolean |
SetFixedRotation | () | method |
public function SetFixedRotation(flag:Boolean):void
Parameters
flag:Boolean |
SetFriction | () | method |
public function SetFriction(friction:Number):void
Parameters
friction:Number |
SetIgnoreGravity | () | method |
public function SetIgnoreGravity(flag:Boolean):void
Parameters
flag:Boolean |
SetLinearDamping | () | method |
public function SetLinearDamping(linearDamping:Number):void
Parameters
linearDamping:Number |
SetLinearVelocity | () | method |
SetMassData | () | method |
SetPosition | () | method |
SetSleepingAllowed | () | method |
public function SetSleepingAllowed(flag:Boolean):void
Parameters
flag:Boolean |
SetTransform | () | method |
SetType | () | method |
public function SetType(type:int):void
Parameters
type:int |
SetUserData | () | method |
public function SetUserData(data:*):void
Parameters
data:* |
b2_dynamicBody | Constant |
public static const b2_dynamicBody:int = 2
b2_kinematicBody | Constant |
public static const b2_kinematicBody:int = 1
b2_staticBody | Constant |
public static const b2_staticBody:int = 0
e_activeFlag | Constant |
public static const e_activeFlag:int = 0x0020
e_alwaysActiveFlag | Constant |
public static const e_alwaysActiveFlag:int = 0x0100
e_autoSleepFlag | Constant |
public static const e_autoSleepFlag:int = 0x0004
e_awakeFlag | Constant |
public static const e_awakeFlag:int = 0x0002
e_bulletFlag | Constant |
public static const e_bulletFlag:int = 0x0008
e_fixedRotationFlag | Constant |
public static const e_fixedRotationFlag:int = 0x0010
e_ignoreGravityFlag | Constant |
public static const e_ignoreGravityFlag:int = 0x0080
e_islandFlag | Constant |
public static const e_islandFlag:int = 0x0001