that i want is to move the player between cubes (1.1.1)
and be in the center of the cube.
let me draw it ^^
this could be possible with Vector3 ??
that i want is to move the player between cubes (1.1.1)
and be in the center of the cube.
let me draw it ^^
this could be possible with Vector3 ??
I would just set the position of the player directly, e.g.:
transform.position = <...position that you want to move the player to...>;
You could move the player relatively (e.g. using Transform.Translate()), but it's at least a possibility that this could introduce numerical error over time. This is probably unlikely to happen if the centers of the squares fall on integer coordinates, but if you simply assign the new position directly, you won't have to worry about it.
i find it... i am not really sure how it work. i read the code and confuse me a little but is what i was looking for..
is a code for 2D move