Hi, I have an issue someone could help me with.
I’m making a sort of car game to teach physics and I need to make a car to move at certain fixed velocity, need the car to, as soon as I hit play, to have let’s say a vel of 50 km/h.
I’ve been working with the wheel colliders but can’t make it start at a certain velocity, the car has to “reach” that vel.
Maybe I’m asking for an unphysical solution…
I’ve tried this:
but it doesn’t compile in c#, some variables seem to be read only…
Anyway that would be a nasty solution
Any help?
Thanks
Thanks Tom, tested that in c#. What happens is that the car doesn’t slow down… :?:
I put that script in the Awake method, not the Update. So, why wouldn’t it slow down?. It’s like there’s no friction.
I mean, I can slow it down if I press reverse and the wheel collider do it magic, but it doesn’t stop by itself.
By the way, I’m working with de buggy script that looks more clear.