NapeSpaceBase

Constructor

@:value({ skipVelIntegrations : 10, minimalStep : 0.2 })new(w:Float, h:Float, ?gravity:Point<Float>, minimalStep:Float = 0.2, skipVelIntegrations:Int = 10)

Variables

height:Float

limits:Rect<Float>

read onlymaxSide:Float

read onlyminSide:Float

read onlyminimalStep:Float

read onlysnap:Float

space:Space

width:Float

Methods

@:value({ isBullet : false, isStatic : false })createBody(data:Body, ?anchor:Vec2, isStatic:Bool = false, isBullet:Bool = false):BodyBody

@:value({ isBullet : false })createBox(size:Point<Float>, isBullet:Bool = false):BodyBox

@:value({ isBullet : false, isBullet : false })createCircle(r:Float, isBullet:Bool = false, isBullet:Bool = false):BodyCircle

@:value({ isBullet : false })createRect(size:Rect<Float>, isBullet:Bool = false):BodyRect

@:value({ isBullet : false })createShape(data:Bytes, resolution:Float, isBullet:Bool = false):BodyShape

@:value({ isBullet : false })createStaticBox(size:Point<Float>, isBullet:Bool = false):BodyBox

@:value({ isBullet : false })createStaticCircle(r:Float, pos:Point<Float>, isBullet:Bool = false):BodyCircle

@:value({ isBullet : false })createStaticRect(size:Rect<Float>, isBullet:Bool = false):BodyRect

pause():Void

play():Void

resolve(name:String):NapeGroup

update(dt:DT):Void