- Home /
This question was
closed Oct 15, 2012 at 07:16 AM by
Fattie for the following reason:
Problem is not reproducible or outdated
Set position to transform.forward+distance
I have my player set on any rotatio and basically what I want is to set the position of the player 2 meters(for example)in front of him. I am thinking something like this:
newposition = player.forward+2/*set 2 meters on front of player*/;
player.position = newposition;
But as you can see is wrong and it won't work so, how can I do this?
Comment
Follow this Question
Related Questions
Camera rotation around player while following. 6 Answers
don't include vertical distance? 2 Answers
Distance won't work 1 Answer
Closest position on path to an object 0 Answers