Hell Guys I have a problem.
I have a Character moving by script:
transform.Translate(0,Input.GetAxis(“Horizontal”),0);
Now if I push a Button and I want to teleport to lets say: (45,23,54) World Coordinates, I use
transform.position = Vector3(45,23,54);
But now my Charcter Is now stuck on this position.I cant move anymore.
So what can I do ??? Set a bool and switch it on for only one time and set him immediately back???
Greeting for tips Ideas and solutions.
Thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx