- Home /
Duplicate Question
transform.position.y and x or z + 1?
Hi! I made my script for entering and exiting a car. My problem is I want to make player be next to the car in X or Z axis and that Y should be a bit above ground because sometimes player gets past through terrain. I was thinking and thinking much but I'm stuck here...
What's your actual problem? Can't you just move the player to outside the car and +1 to the y axis?
There are thousands of examples of using transform.position. Please review tuts/vids/UA/Google for any number of resources. If you have a specific question, ask it.
$$anonymous$$y player isn't actually sitting in car. I steer a car but player is inactive while I do this. When I activate him he appears sometimes on the car (fps.transform.position = Car.transform.position) but I want him to be next to a car.