Im using the 3D bound depthSortMode(1) which from the documentation the entity wil be sorting using the 3d bound that i have created. From the image below as u can see the 3d bound for the tree is not behind the character. I was expecting the tree should be sort below the character because im using the depthSortMode(1) which use the 3d bound to determine sorting. Am i doing the correct way here?
Here is my code on the tile map
Code: Select all
this.foregroundMap = new IgeTileMap2d()
.id('foregroundMap')
.isometricMounts(true)
.tileWidth(40)
.tileHeight(40)
.drawGrid(10)
.drawMouse(true)
.depthSortMode(1)
.drawBounds(false)
.drawBoundsData(false)
.hoverColor('#BFE01B')
.mount(this.foregroundScene);
Please Advise.
Regards,
Zachz