Quantcast
Channel: Questions in topic: "wheelcollider"
Viewing all articles
Browse latest Browse all 490

Calculating degrees between object and raycast hit

$
0
0
Hey. Im having some issues concerning my approach to this problem. Here is the case: I have a object (a car) this has wheel colliders. Now I want to control this car with rayCast (RTS Game) So when I select the car I and i click at a point at the map I would like it to go there steering with setting the steerangle to the calculation. I have got the car to move, but the calculation of the angle between the car and rayCast hit has got me stuck... Anybody any good ideas?

Viewing all articles
Browse latest Browse all 490

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>