Physics.Ninja.Tile#xw

[readonly] xw : number Half the width. Source code: physics/ninja/Tile.js (Line 71)

Physics.Ninja.Tile#x

x : number The x position. Source code: physics/ninja/Tile.js (Line 669)

Physics.Ninja.Tile#width

[readonly] width : number The width. Source code: physics/ninja/Tile.js (Line 83)

Physics.Ninja.Tile#velocity

velocity : Phaser.Point The velocity of this object. Source code: physics/ninja/Tile.js (Line 94)

Physics.Ninja.Tile#type

[readonly] type : number The type of this Tile. Source code: physics/ninja/Tile.js (Line 49)

Physics.Ninja.Tile#Tile

new Tile(body, x, y, width, height, type) Ninja Physics Tile constructor.A Tile is defined by its width, height and type. It's type can include slope data, such as 45 degree slopes, or convex slopes.Understand that for any type including a slope (types 2 to 29) the Tile must be SQUARE, i.e. have an equal width and height.Also note that as Tiles are primarily used for levels they have gravity disabled and world bounds collision disabled by default. Note: This class could be massively optimised

Physics.Ninja.Tile#system

system : Phaser.Physics.Ninja A reference to the physics system. Source code: physics/ninja/Tile.js (Line 37)

Physics.Ninja.Tile#setType()

setType(id) Tiles cannot collide with the world bounds, it's up to you to keep them where you want them. But we need this API stub to satisfy the Body. Parameters Name Type Description id number The type of Tile this will use, i.e. Phaser.Physics.Ninja.Tile.SLOPE_45DEGpn, Phaser.Physics.Ninja.Tile.CONVEXpp, etc. Source code: physics/ninja/Tile.js (Line 268)

Physics.Ninja.Tile#right

[readonly] right : number The right value of this Body (same as Body.x + Body.width) Source code: physics/ninja/Tile.js (Line 714)

Physics.Ninja.Tile#reportCollisionVsWorld()

reportCollisionVsWorld(px, py, dx, dy, obj) Process a world collision and apply the resulting forces. Parameters Name Type Description px number The tangent velocity py number The tangent velocity dx number Collision normal dy number Collision normal obj number Object this Tile collided with Source code: physics/ninja/Tile.js (Line 194)