| Package | Parts |
| Class | public class ShapePart |
| Inheritance | ShapePart Part |
| Subclasses | Cannon, Circle, Rectangle, Triangle |
| Property | Defined by | ||
|---|---|---|---|
| angle : Number | ShapePart | ||
| blue : int | ShapePart | ||
| centerX : Number | ShapePart | ||
| centerY : Number | ShapePart | ||
![]() | checkedCollisionGroup : Boolean = false | Part | |
| collide : Boolean = true | ShapePart | ||
| density : Number | ShapePart | ||
![]() | dragXOff : Number | Part | |
![]() | dragYOff : Number | Part | |
![]() | drawAnyway : Boolean = true | Part | |
| green : int | ShapePart | ||
| highlightForJoint : Boolean = false | ShapePart | ||
| isBullet : Boolean = false | ShapePart | ||
| isCameraFocus : Boolean = false | ShapePart | ||
![]() | isEditable : Boolean = true | Part | |
![]() | isEnabled : Boolean = true | Part | |
![]() | isInitted : Boolean = false | Part | |
![]() | isSandbox : Boolean = false | Part | |
![]() | isStatic : Boolean = false | Part | |
| m_collisionGroup : int = -2.147483648E9 | ShapePart | ||
| opacity : int | ShapePart | ||
| outline : Boolean | ShapePart | ||
| red : int | ShapePart | ||
![]() | rotateAngle : Number | Part | |
![]() | rotateOrientation : Number | Part | |
| terrain : Boolean | ShapePart | ||
![]() | type : String | Part | |
| undragable : Boolean | ShapePart | ||
| Property | Defined by | ||
|---|---|---|---|
| m_body : b2Body = null | ShapePart | ||
| m_joints : Array | ShapePart | ||
| m_shape : b2Shape = null | ShapePart | ||
| m_thrusters : Array | ShapePart | ||
| Method | Defined by | ||
|---|---|---|---|
|
ShapePart(x:Number, y:Number)
| ShapePart | ||
| ShapePart | |||
|
AddThrusters(t:Thrusters):void
| ShapePart | ||
| ShapePart | |||
|
GetActiveJoints():Array
| ShapePart | ||
|
GetActiveThrusters():Array
| ShapePart | ||
|
GetArea():Number
| ShapePart | ||
|
GetAttachedParts(partList:Array = null):Array
| ShapePart | ||
|
GetBody():b2Body
| ShapePart | ||
|
GetMass():Number
| ShapePart | ||
|
GetOutlineVertices(verts:Array, numVerts:int, thickness:Number):Array
[static]
| ShapePart | ||
|
GetShape():b2Shape
| ShapePart | ||
|
HeavierThan(other:ShapePart):Boolean
| ShapePart | ||
![]() |
Init(world:b2World, body:b2Body = null):void
| Part | |
![]() |
InsideShape(xVal:Number, yVal:Number, scale:Number):Boolean
| Part | |
![]() |
IntersectsBox(boxX:Number, boxY:Number, boxW:Number, boxH:Number):Boolean
| Part | |
|
KeyInput(key:int, up:Boolean, replay:Boolean):void
| ShapePart | ||
| ShapePart | |||
|
Move(xVal:Number, yVal:Number):void
| ShapePart | ||
|
NumbersEqual(n1:Number, n2:Number):Boolean
| ShapePart | ||
![]() |
PrepareForResizing():void
| Part | |
|
RotateAround(xVal:Number, yVal:Number, curAngle:Number):void
| ShapePart | ||
|
SetCollisionGroup(grp:int):void
| ShapePart | ||
|
ToString():String
| ShapePart | ||
|
UnInit(world:b2World):void
| ShapePart | ||
|
Update(world:b2World):void
| ShapePart | ||
|
WillBeStatic(shapeList:Array = null):Boolean
| ShapePart | ||
| angle | property |
public var angle:Number
| blue | property |
public var blue:int
| centerX | property |
public var centerX:Number
| centerY | property |
public var centerY:Number
| collide | property |
public var collide:Boolean = true
| density | property |
public var density:Number
| green | property |
public var green:int
| highlightForJoint | property |
public var highlightForJoint:Boolean = false
| isBullet | property |
public var isBullet:Boolean = false
| isCameraFocus | property |
public var isCameraFocus:Boolean = false
| m_body | property |
protected var m_body:b2Body = null
| m_collisionGroup | property |
public var m_collisionGroup:int = -2.147483648E9
| m_joints | property |
protected var m_joints:Array
| m_shape | property |
protected var m_shape:b2Shape = null
| m_thrusters | property |
protected var m_thrusters:Array
| opacity | property |
public var opacity:int
| outline | property |
public var outline:Boolean
| red | property |
public var red:int
| terrain | property |
public var terrain:Boolean
| undragable | property |
public var undragable:Boolean
| ShapePart | () | constructor |
public function ShapePart(x:Number, y:Number)Parameters
x:Number |
|
y:Number |
| AddJoint | () | method |
| AddThrusters | () | method |
| equals | () | method |
| GetActiveJoints | () | method |
public function GetActiveJoints():Array
Returns
Array |
| GetActiveThrusters | () | method |
public function GetActiveThrusters():Array
Returns
Array |
| GetArea | () | method |
public function GetArea():Number
Returns
Number |
| GetAttachedParts | () | method |
public override function GetAttachedParts(partList:Array = null):ArrayParameters
partList:Array (default = null) |
Array |
| GetBody | () | method |
public function GetBody():b2Body
Returns
b2Body |
| GetMass | () | method |
public function GetMass():Number
Returns
Number |
| GetOutlineVertices | () | method |
public static function GetOutlineVertices(verts:Array, numVerts:int, thickness:Number):ArrayParameters
verts:Array |
|
numVerts:int |
|
thickness:Number |
Array |
| GetShape | () | method |
public function GetShape():b2Shape
Returns
b2Shape |
| HeavierThan | () | method |
| KeyInput | () | method |
public override function KeyInput(key:int, up:Boolean, replay:Boolean):voidParameters
key:int |
|
up:Boolean |
|
replay:Boolean |
| MakeCopy | () | method |
| Move | () | method |
public override function Move(xVal:Number, yVal:Number):voidParameters
xVal:Number |
|
yVal:Number |
| NumbersEqual | () | method |
public function NumbersEqual(n1:Number, n2:Number):BooleanParameters
n1:Number |
|
n2:Number |
Boolean |
| RotateAround | () | method |
public override function RotateAround(xVal:Number, yVal:Number, curAngle:Number):voidParameters
xVal:Number |
|
yVal:Number |
|
curAngle:Number |
| SetCollisionGroup | () | method |
public function SetCollisionGroup(grp:int):voidParameters
grp:int |
| ToString | () | method |
public override function ToString():String
Returns
String |
| UnInit | () | method |
public override function UnInit(world:b2World):voidParameters
world:b2World |
| Update | () | method |
public override function Update(world:b2World):voidParameters
world:b2World |
| WillBeStatic | () | method |
public function WillBeStatic(shapeList:Array = null):BooleanParameters
shapeList:Array (default = null) |
Boolean |