| Property | Defined by | ||
|---|---|---|---|
![]() | alpha : Number Shape's transparency (0 to 1)
| Shape | |
![]() | anchor : IBody | Shape | |
| boundingBox : AABR
[read-only]
| Circle | ||
| collisionTypeID : String [read-only]
| Circle | ||
![]() | color : uint Shape's color
| Shape | |
![]() | displacement : Vector | Shape | |
![]() | hashSize : Number Size of hash (circle in the center of the object)
| Shape | |
![]() | inverseMass : Number | Shape | |
![]() | isAnchored : Boolean | Shape | |
![]() | isColliding : Boolean | Shape | |
![]() | isOnTable : Boolean | Shape | |
![]() | lineColor : uint Line color
| Shape | |
![]() | lineThickness : Number Line thickness
| Shape | |
![]() | mass : Number | Shape | |
| position : Vector
[read-only]
| Circle | ||
![]() | q : Number | Shape | |
| radius : Number | Circle | ||
![]() | rotation : RotationMatrix | Shape | |
| x : Number [read-only]
| Circle | ||
| y : Number [read-only]
| Circle | ||
| Method | Defined by | ||
|---|---|---|---|
|
Circle(x:Number, y:Number, radius:Number, anchor:IBody = null, color:uint = 0xFFFFFF, alpha:Number = 0.7, lineColor:uint = 0x000000, lineThickness:Number = 1, hashSize:Number = 5)
Create a circle with the following parameters
| Circle | ||
![]() |
rotate(q:Number):void
Rotate the shape
| Shape | |
![]() |
Translate shape using a given displacement vector.
| Shape | |
| boundingBox | property |
| collisionTypeID | property |
collisionTypeID:String [read-only]Implementation
public function get collisionTypeID():String
| position | property |
| radius | property |
radius:Number [read-write]Implementation
public function get radius():Number
public function set radius(value:Number):void
| x | property |
x:Number [read-only]Implementation
public function get x():Number
| y | property |
y:Number [read-only]Implementation
public function get y():Number
| Circle | () | constructor |
public function Circle(x:Number, y:Number, radius:Number, anchor:IBody = null, color:uint = 0xFFFFFF, alpha:Number = 0.7, lineColor:uint = 0x000000, lineThickness:Number = 1, hashSize:Number = 5)Create a circle with the following parameters
Parametersx:Number |
|
y:Number |
|
radius:Number |
|
anchor:IBody (default = null) |
|
color:uint (default = 0xFFFFFF) |
|
alpha:Number (default = 0.7) |
|
lineColor:uint (default = 0x000000) |
|
lineThickness:Number (default = 1) |
|
hashSize:Number (default = 5) |