| Package | Box2DAS.Collision.Shapes |
| Class | public class b2PolygonShape |
| Inheritance | b2PolygonShape b2Shape b2Base Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | bytes : ByteArray [static] | b2Base | |
![]() | initialized : Boolean = false [static] | b2Base | |
![]() | lib : Object [static] | b2Base | |
![]() | loader : CLibInit [static] | b2Base | |
![]() | m_area : Number | b2Shape | |
| m_centroid : b2Vec2 | b2PolygonShape | ||
![]() | mem : MemUser [static] | b2Base | |
| m_normals : Vector.<V2> | b2PolygonShape | ||
![]() | m_radius : Number | b2Shape | |
![]() | m_type : int | b2Shape | |
| m_vertexCount : int | b2PolygonShape | ||
| m_vertices : Vector.<V2> | b2PolygonShape | ||
![]() | _ptr : Number | b2Base | |
![]() | valid : Boolean [read-only]
Does the object point to a C++ equivalent (i.e. | b2Base | |
| Method | Defined By | ||
|---|---|---|---|
b2PolygonShape(p:int = 0) | b2PolygonShape | ||
CheckVertexDirection(v:Vector.<V2>):Boolean [static] | b2PolygonShape | ||
[override] | b2PolygonShape | ||
[static] | b2PolygonShape | ||
ComputeMass(massData:b2MassData, density:Number):void [override] | b2PolygonShape | ||
[override] | b2PolygonShape | ||
![]() | b2Shape | ||
Decompose(v:Vector.<Number>):Vector.<b2PolygonShape> [static] | b2PolygonShape | ||
![]() | deref(adr:int):* [static]
dereference a C++ pointer or AS3_Val that is pointing to an AS3 object. | b2Base | |
destroy():void [override] | b2PolygonShape | ||
[override] | b2PolygonShape | ||
EnsureCorrectVertexDirection(v:Vector.<V2>):Boolean [static] | b2PolygonShape | ||
![]() | getArr():Array [static] | b2Base | |
GetSupport():int | b2PolygonShape | ||
GetSupportVertex():int | b2PolygonShape | ||
![]() | GetType():int | b2Shape | |
| b2PolygonShape | |||
GetVertexCount():uint | b2PolygonShape | ||
![]() | initialize(defs:Boolean = true):void [static]
Initialize the C++ module. | b2Base | |
[override] | b2PolygonShape | ||
![]() | readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array. | b2Base | |
ReverseVertices(v:Vector.<V2>):void [static] | b2PolygonShape | ||
| b2PolygonShape | |||
| b2PolygonShape | |||
| b2PolygonShape | |||
[override] | b2PolygonShape | ||
![]() | 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 | |
| m_centroid | property |
public var m_centroid:b2Vec2| m_normals | property |
m_normals:Vector.<V2> public function get m_normals():Vector.<V2> public function set m_normals(value:Vector.<V2>):void| m_vertexCount | property |
m_vertexCount:int public function get m_vertexCount():int public function set m_vertexCount(value:int):void| m_vertices | property |
m_vertices:Vector.<V2> public function get m_vertices():Vector.<V2> public function set m_vertices(value:Vector.<V2>):void| b2PolygonShape | () | Constructor |
public function b2PolygonShape(p:int = 0)p:int (default = 0) |
| CheckVertexDirection | () | method |
public static function CheckVertexDirection(v:Vector.<V2>):BooleanParameters
v:Vector.<V2> |
Boolean |
| ComputeAABB | () | method |
| ComputeCentroid | () | method |
| ComputeMass | () | method |
override public function ComputeMass(massData:b2MassData, density:Number):voidParameters
massData:b2MassData | |
density:Number |
| ComputeSubmergedArea | () | method |
override public function ComputeSubmergedArea(normal:V2, offset:Number, xf:XF, c:V2):NumberParameters
normal:V2 | |
offset:Number | |
xf:XF | |
c:V2 |
Number |
| Decompose | () | method |
public static function Decompose(v:Vector.<Number>):Vector.<b2PolygonShape>Parameters
v:Vector.<Number> |
Vector.<b2PolygonShape> |
| destroy | () | method |
override public function destroy():void| Draw | () | method |
override public function Draw(g:Graphics, xf:XF, scale:Number = 1, options:Object = null):voidParameters
g:Graphics | |
xf:XF | |
scale:Number (default = 1) | |
options:Object (default = null) |
| EnsureCorrectVertexDirection | () | method |
public static function EnsureCorrectVertexDirection(v:Vector.<V2>):BooleanParameters
v:Vector.<V2> |
Boolean |
| GetSupport | () | method |
public function GetSupport():intReturnsint |
| GetSupportVertex | () | method |
public function GetSupportVertex():intReturnsint |
| GetVertex | () | method |
| GetVertexCount | () | method |
public function GetVertexCount():uintReturnsuint |
| RayCast | () | method |
override public function RayCast(output:*, input:*, transform:XF):BooleanParameters
output:* | |
input:* | |
transform:XF |
Boolean |
| ReverseVertices | () | method |
| Set | () | method |
| SetAsBox | () | method |
public function SetAsBox(hx:Number, hy:Number, center:V2 = null, angle:Number = 0):voidParameters
hx:Number | |
hy:Number | |
center:V2 (default = null) | |
angle:Number (default = 0) |
| SetAsEdge | () | method |
| TestPoint | () | method |