- Home /
Question by
hinalk · Apr 05, 2018 at 02:55 PM ·
player movementinfinite runner
Move the player along the centre of a spawned tile in an infinite runner game
I am spawning tiles in X and Z axis for an infinite runner game (constant forward movement). I want the player to move only along the centre of the spawned tile i.e. only in one lane. Currently it takes a turn and the position of the Player on tile depends upon when the turn is taken.
I have used rigidBody for the player and using MovePosition or trasform.position is not helping at all as it is difficult to get the vectors to pass as their arguments.
I am reluctant to use navmesh or collider-> tag-> transform.position as it is going to run on android and I am afraid of resource overloading.
Any help is appreciated.
Comment