Search This Blog

Friday, August 26, 2016

Difference between getPos() and getTilePos()

I realize that in my lessons, I sometimes do setPos() and setTilePos() there is a difference between them that doesn't really matter because I taught you how to turn your floats into an integer and vice versa. But that is just it. the setTilePos() function returns a whole number (integer) and the setPos() returns a float. If you need to be exact about where to place a block then setPos(x+2.1343,y+2.23,z-12.234) will work.

No comments:

Post a Comment