- type
- class
- extends
- Debug
Implementation of nape debug draw using flash/nme graphics API.
This debug draw is slower than BitmapDebug which is available in flash10+ however the BitmapDebug draw makes use of Alchemy opcodes so you may wish not to use it if you are also using Stage3D and do not wish to be subject to Adobe licensing.
This debug draw is slower than BitmapDebug which is available in flash10+ however the BitmapDebug draw makes use of Alchemy opcodes so you may wish not to use it if you are also using Stage3D and do not wish to be subject to Adobe licensing.
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
flush():Void
inherited from nape.util.Debug