- Home /
how to make the player get's in the car?
how do i make the player gets in the car on DISTANCE = 0.5 like near it?
Comment
Answer by EHogger · Feb 04, 2013 at 01:32 PM
if (Vector3.Distance(player.position, car.position) < 0.5){
//get in the car
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613092126im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help with crafting system. 1 Answer
How to make a build outline for placing items? 2 Answers
Problems with Item drop and inventory system 1 Answer
UNET: Spawning AND moving objects! 2 Answers