- type
- class
- extends
- Debug
BitmapDebug available on flash10+ only.
This debug draw makes use of Alchemy opcodes so you may wish to forgo it if you do not want to be subjcet to Adobe licensing rules should you also be using Stage3D.
This debug draw draws things pixel by pixel into alchemy memory, flushing to a BitmapData object. Believe it or not, this is in almost all cases 'faster' than flash's built in graphics API.
This debug draw makes use of Alchemy opcodes so you may wish to forgo it if you do not want to be subjcet to Adobe licensing rules should you also be using Stage3D.
This debug draw draws things pixel by pixel into alchemy memory, flushing to a BitmapData object. Believe it or not, this is in almost all cases 'faster' than flash's built in graphics API.
Instance Properties hide inherited show inherited
var bgColour : Int
inherited from nape.util.Debug
var colour : Null<Int -> Int> = null
inherited from nape.util.Debug
var cullingEnabled : Bool = false
inherited from nape.util.Debug
readonly var display : flash.display.DisplayObject
inherited from nape.util.Debug
var drawBodies : Bool = true
inherited from nape.util.Debug
If true, then all bodies in the space (whether active or not) will be drawn.
var drawBodyDetail : Bool = false
inherited from nape.util.Debug
var drawCollisionArbiters : Bool = false
inherited from nape.util.Debug
var drawConstraints : Bool = false
inherited from nape.util.Debug
If true, then representations of the active constraints will be drawn.
var drawFluidArbiters : Bool = false
inherited from nape.util.Debug
var drawSensorArbiters : Bool = false
inherited from nape.util.Debug
var drawShapeAngleIndicators : Bool = true
inherited from nape.util.Debug
var drawShapeDetail : Bool = false
inherited from nape.util.Debug
var transform : nape.geom.Mat23 = new Mat23()
inherited from nape.util.Debug
Instance Methods hide inherited show inherited
function clear():Void
overrides nape.util.Debug
Clear the debug view.
function draw(object:Dynamic):Void
overrides nape.util.Debug
function drawAABB(aabb:nape.geom.AABB, colour:Int):Void
overrides nape.util.Debug
function drawCircle(position:nape.geom.Vec2, radius:Float, colour:Int):Void
overrides nape.util.Debug
function drawCurve(start:nape.geom.Vec2, control:nape.geom.Vec2, end:nape.geom.Vec2, colour:Int):Void
overrides nape.util.Debug
function drawFilledCircle(position:nape.geom.Vec2, radius:Float, colour:Int):Void
overrides nape.util.Debug
function drawFilledPolygon(polygon:Dynamic, colour:Int):Void
overrides nape.util.Debug
function drawFilledTriangle(p0:nape.geom.Vec2, p1:nape.geom.Vec2, p2:nape.geom.Vec2, colour:Int):Void
overrides nape.util.Debug
function drawLine(start:nape.geom.Vec2, end:nape.geom.Vec2, colour:Int):Void
overrides nape.util.Debug
function drawPolygon(polygon:Dynamic, colour:Int):Void
overrides nape.util.Debug
function drawSpring(start:nape.geom.Vec2, end:nape.geom.Vec2, colour:Int, coils:Int = null, radius:Float = null):Void
overrides nape.util.Debug
function flush():Void
overrides nape.util.Debug