Translates the object to the tile co-ordinates passed.
translateToTile (Numberx, Numbery, Numberz)
NumberxThe x tile co-ordinate.
NumberyThe y tile co-ordinate.
NumberzThe z tile co-ordinate.
Returns * The object this method was called from to allow method chaining.
Translate entity to tile
// Create a tile map
var tileMap = new IgeTileMap2d()
.tileWidth(40)
.tileHeight(40);
// Mount our entity to the tile map
entity.mount(tileMap);
// Translate the entity to the tile x:10, y:12
entity.translateToTile(10, 12, 0);