Static variables

@:value(null)staticactive:PhysicsWorld = null

Constructor

@:value({ solverIterations : 10, maxSteps : 10, timeScale : 1.0 })new(timeScale:Float = 1.0, maxSteps:Int = 10, solverIterations:Int = 10)

Variables

@:value(new Vec4())convexHitNormalWorld:Vec4 = new Vec4()

@:value(new Vec4())convexHitPointWorld:Vec4 = new Vec4()

@:value(new Vec4())hitNormalWorld:Vec4 = new Vec4()

@:value(new Vec4())hitPointWorld:Vec4 = new Vec4()

@:value(10)solverIterations:Int = 10

@:value(1.0)timeScale:Float = 1.0

Methods

@:value({ mask : 0xFFFFFFFF, group : 0x00000001 })convexSweepTest(rb:RigidBody, from:Vec4, to:Vec4, rotation:Quat, group:Int = 0x00000001, mask:Int = 0xFFFFFFFF):ConvexHit

@:has_untypedgetContacts(body:RigidBody):Array<RigidBody>

Used to get intersecting rigid bodies with the passed in RigidBody as reference. Often used when checking for object collisions.

Parameters:

body

The passed in RigidBody to be checked for intersecting rigid bodies.

Returns:

@:value({ mask : 0xFFFFFFFF, group : 0x00000001 })pickClosest(inputX:Float, inputY:Float, group:Int = 0x00000001, mask:Int = 0xFFFFFFFF):RigidBody

@:has_untyped@:value({ mask : 0xFFFFFFFF, group : 0x00000001 })rayCast(from:Vec4, to:Vec4, group:Int = 0x00000001, mask:Int = 0xFFFFFFFF):Hit

Inherited Variables

Defined by Trait

@:value("")name:String = ""

Inherited Methods