| Package | Box2D.Dynamics |
| Class | public class b2DebugDraw |
| Source | b2DebugDraw.as |
| Property | Defined by | ||
|---|---|---|---|
| e_aabbBit : uint = 0x0008 [static] Draw axis aligned bounding boxes
| b2DebugDraw | ||
| e_centerOfMassBit : uint = 0x0040 [static] Draw center of mass frame
| b2DebugDraw | ||
| e_coreShapeBit : uint = 0x0004 [static] Draw core (toi) shapes
| b2DebugDraw | ||
| e_jointBit : uint = 0x0002 [static] Draw joint connections
| b2DebugDraw | ||
| e_obbBit : uint = 0x0010 [static] Draw oriented bounding boxes
| b2DebugDraw | ||
| e_pairBit : uint = 0x0020 [static] Draw broad-phase pairs
| b2DebugDraw | ||
| e_shapeBit : uint = 0x0001 [static] Draw shapes
| b2DebugDraw | ||
| Method | Defined by | ||
|---|---|---|---|
| b2DebugDraw | |||
|
AppendFlags(flags:uint):void
Append flags to the current flags.
| b2DebugDraw | ||
|
ClearFlags(flags:uint):void
Clear flags from the current flags.
| b2DebugDraw | ||
|
Draw a circle.
| b2DebugDraw | ||
|
DrawPolygon(vertices:Array, vertexCount:int, color:b2Color):void
Draw a closed polygon provided in CCW order.
| b2DebugDraw | ||
|
Draw a line segment.
| b2DebugDraw | ||
|
Draw a solid circle.
| b2DebugDraw | ||
|
DrawSolidPolygon(vertices:Array, vertexCount:int, color:b2Color):void
Draw a solid closed polygon provided in CCW order.
| b2DebugDraw | ||
|
Draw a transform.
| b2DebugDraw | ||
|
GetAlpha():Number
Get the alpha value used for lines
| b2DebugDraw | ||
|
GetDrawScale():Number
Get the draw
| b2DebugDraw | ||
|
GetFillAlpha():Number
Get the alpha value used for fills
| b2DebugDraw | ||
|
GetFlags():uint
Get the drawing flags.
| b2DebugDraw | ||
|
GetLineThickness():Number
Get the line thickness
| b2DebugDraw | ||
|
GetSprite():Sprite
Get the sprite
| b2DebugDraw | ||
|
GetXFormScale():Number
Get the scale used for drawing XForms
| b2DebugDraw | ||
|
SetAlpha(alpha:Number):void
Set the alpha value used for lines
| b2DebugDraw | ||
|
SetDrawScale(drawScale:Number):void
Set the draw scale
| b2DebugDraw | ||
|
SetFillAlpha(alpha:Number):void
Set the alpha value used for fills
| b2DebugDraw | ||
|
SetFlags(flags:uint):void
Set the drawing flags.
| b2DebugDraw | ||
|
SetLineThickness(lineThickness:Number):void
Set the line thickness
| b2DebugDraw | ||
|
SetSprite(sprite:Sprite):void
Set the sprite
| b2DebugDraw | ||
|
SetXFormScale(xformScale:Number):void
Set the scale used for drawing XForms
| b2DebugDraw | ||
| e_aabbBit | property |
public static var e_aabbBit:uint = 0x0008Draw axis aligned bounding boxes
| e_centerOfMassBit | property |
public static var e_centerOfMassBit:uint = 0x0040Draw center of mass frame
| e_coreShapeBit | property |
public static var e_coreShapeBit:uint = 0x0004Draw core (toi) shapes
| e_jointBit | property |
public static var e_jointBit:uint = 0x0002Draw joint connections
| e_obbBit | property |
public static var e_obbBit:uint = 0x0010Draw oriented bounding boxes
| e_pairBit | property |
public static var e_pairBit:uint = 0x0020Draw broad-phase pairs
| e_shapeBit | property |
public static var e_shapeBit:uint = 0x0001Draw shapes
| b2DebugDraw | () | constructor |
public function b2DebugDraw()
| AppendFlags | () | method |
public function AppendFlags(flags:uint):voidAppend flags to the current flags.
Parametersflags:uint |
| ClearFlags | () | method |
public function ClearFlags(flags:uint):voidClear flags from the current flags.
Parametersflags:uint |
| DrawCircle | () | method |
public function DrawCircle(center:b2Vec2, radius:Number, color:b2Color):voidDraw a circle.
Parameterscenter:b2Vec2 |
|
radius:Number |
|
color:b2Color |
| DrawPolygon | () | method |
public function DrawPolygon(vertices:Array, vertexCount:int, color:b2Color):voidDraw a closed polygon provided in CCW order.
Parametersvertices:Array |
|
vertexCount:int |
|
color:b2Color |
| DrawSegment | () | method |
public function DrawSegment(p1:b2Vec2, p2:b2Vec2, color:b2Color):voidDraw a line segment.
Parametersp1:b2Vec2 |
|
p2:b2Vec2 |
|
color:b2Color |
| DrawSolidCircle | () | method |
public function DrawSolidCircle(center:b2Vec2, radius:Number, axis:b2Vec2, color:b2Color):voidDraw a solid circle.
Parameterscenter:b2Vec2 |
|
radius:Number |
|
axis:b2Vec2 |
|
color:b2Color |
| DrawSolidPolygon | () | method |
public function DrawSolidPolygon(vertices:Array, vertexCount:int, color:b2Color):voidDraw a solid closed polygon provided in CCW order.
Parametersvertices:Array |
|
vertexCount:int |
|
color:b2Color |
| DrawXForm | () | method |
public function DrawXForm(xf:b2XForm):voidDraw a transform. Choose your own length scale.
Parametersxf:b2XForm — a transform.
|
| GetAlpha | () | method |
public function GetAlpha():NumberGet the alpha value used for lines
ReturnsNumber |
| GetDrawScale | () | method |
public function GetDrawScale():NumberGet the draw
ReturnsNumber |
| GetFillAlpha | () | method |
public function GetFillAlpha():NumberGet the alpha value used for fills
ReturnsNumber |
| GetFlags | () | method |
public function GetFlags():uintGet the drawing flags.
Returnsuint |
| GetLineThickness | () | method |
public function GetLineThickness():NumberGet the line thickness
ReturnsNumber |
| GetSprite | () | method |
public function GetSprite():SpriteGet the sprite
ReturnsSprite |
| GetXFormScale | () | method |
public function GetXFormScale():NumberGet the scale used for drawing XForms
ReturnsNumber |
| SetAlpha | () | method |
public function SetAlpha(alpha:Number):voidSet the alpha value used for lines
Parametersalpha:Number |
| SetDrawScale | () | method |
public function SetDrawScale(drawScale:Number):voidSet the draw scale
ParametersdrawScale:Number |
| SetFillAlpha | () | method |
public function SetFillAlpha(alpha:Number):voidSet the alpha value used for fills
Parametersalpha:Number |
| SetFlags | () | method |
public function SetFlags(flags:uint):voidSet the drawing flags.
Parametersflags:uint |
| SetLineThickness | () | method |
public function SetLineThickness(lineThickness:Number):voidSet the line thickness
ParameterslineThickness:Number |
| SetSprite | () | method |
public function SetSprite(sprite:Sprite):voidSet the sprite
Parameterssprite:Sprite |
| SetXFormScale | () | method |
public function SetXFormScale(xformScale:Number):voidSet the scale used for drawing XForms
ParametersxformScale:Number |