Physics.Ninja.AABB#AABB

new AABB(body, x, y, width, height)

Ninja Physics AABB constructor.
Note: This class could be massively optimised and reduced in size. I leave that challenge up to you.

Parameters
Name Type Description
body Phaser.Physics.Ninja.Body

The body that owns this shape.

x number

The x coordinate to create this shape at.

y number

The y coordinate to create this shape at.

width number

The width of this AABB.

height number

The height of this AABB.

Source code: physics/ninja/AABB.js (Line 20)
doc_phaser
2017-02-14 11:00:02
Comments
Leave a Comment

Please login to continue.