PackageBox2DAS.Collision.Shapes
Classpublic class b2CircleShape
Inheritanceb2CircleShape Inheritance b2Shape Inheritance b2Base Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedbytes : ByteArray
[static]
b2Base
 Inheritedinitialized : Boolean = false
[static]
b2Base
 Inheritedlib : Object
[static]
b2Base
 Inheritedloader : CLibInit
[static]
b2Base
 Inheritedm_area : Number
b2Shape
 Inheritedmem : MemUser
[static]
b2Base
  m_p : b2Vec2
b2CircleShape
 Inheritedm_radius : Number
b2Shape
 Inheritedm_type : int
b2Shape
 Inherited_ptr : Number
b2Base
 Inheritedvalid : Boolean
[read-only] Does the object point to a C++ equivalent (i.e.
b2Base
Public Methods
 MethodDefined By
  
b2CircleShape(p:int = 0)
b2CircleShape
  
ComputeAABB(aabb:AABB, xf:XF):void
[override]
b2CircleShape
  
ComputeMass(massData:b2MassData, density:Number):void
[override]
b2CircleShape
  
ComputeSubmergedArea(normal:V2, offset:Number, xf:XF, c:V2):Number
[override]
b2CircleShape
 Inherited
b2Shape
 Inherited
deref(adr:int):*
[static] dereference a C++ pointer or AS3_Val that is pointing to an AS3 object.
b2Base
  
destroy():void
[override]
b2CircleShape
  
Draw(g:Graphics, xf:XF, scale:Number = 1, options:Object = null):void
[override]
b2CircleShape
 Inherited
getArr():Array
[static]
b2Base
 Inherited
GetType():int
b2Shape
 Inherited
initialize(defs:Boolean = true):void
[static] Initialize the C++ module.
b2Base
  
RayCast(output:*, input:*, transform:XF):Boolean
[override]
b2CircleShape
 Inherited
readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array.
b2Base
  
TestPoint(transform:XF, p:V2):Boolean
[override]
b2CircleShape
 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
Public Constants
 ConstantDefined By
 Inheritede_circle : int = 0
[static]
b2Shape
 Inheritede_polygon : int = 1
[static]
b2Shape
 Inheritede_typeCount : int = 2
[static]
b2Shape
 Inheritede_unknown : int = -1
[static]
b2Shape
Property Detail
m_pproperty
public var m_p:b2Vec2

Constructor Detail
b2CircleShape()Constructor
public function b2CircleShape(p:int = 0)



Parameters
p:int (default = 0)
Method Detail
ComputeAABB()method
override public function ComputeAABB(aabb:AABB, xf:XF):void

Parameters

aabb:AABB
 
xf:XF

ComputeMass()method 
override public function ComputeMass(massData:b2MassData, density:Number):void

Parameters

massData:b2MassData
 
density:Number

ComputeSubmergedArea()method 
override public function ComputeSubmergedArea(normal:V2, offset:Number, xf:XF, c:V2):Number

Parameters

normal:V2
 
offset:Number
 
xf:XF
 
c:V2

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

Draw()method 
override public function Draw(g:Graphics, xf:XF, scale:Number = 1, options:Object = null):void

Parameters

g:Graphics
 
xf:XF
 
scale:Number (default = 1)
 
options:Object (default = null)

RayCast()method 
override public function RayCast(output:*, input:*, transform:XF):Boolean

Parameters

output:*
 
input:*
 
transform:XF

Returns
Boolean
TestPoint()method 
override public function TestPoint(transform:XF, p:V2):Boolean

Parameters

transform:XF
 
p:V2

Returns
Boolean