|
So in the game I'm making, you essentially have to drive a little truck to the pickup station, get the item that needs the delivery, then take it to the destination. I'm working on just the first level which is a straight run with no obstacles so I'm purely working on the car physics right now. I've got a simple car going, but it flips so incredibly easy it's pathetic and the car is hardly moving at all. The car is never supposed to catch any air so is there any way to constrain it to the ground? It's going to be top down so the Y-axis isn't even a factor in the game. I lightened it up so it's more visible what's actually going on. Here's the Mac and PC stand alones, not sure how to put it as a playable game online...
(comments are locked)
|
|
I haven't made a car in unity yet, but from what I read in the docs you should use Brake Torque for braking. Something like this maybe->
Note: you're only going to have front brakes like that lol
(comments are locked)
|
|
That never even crossed my mind... Thanks:) Will that solve the rolling do you think? You can play around with the constraint freezers and see if you can get it set up how you want it. It can freeze positions and/or rotations.
Dec 31 '11 at 11:30 AM
Lo0NuhtiK
(comments are locked)
|
|
One last question, now that I've got that all sorted out, thank you:), I'm not sure how to make a brake system. Simply pressing reverse takes forever to slow it down. I figure I have to alter the velocity in some way but have no idea how... Here's my code: }
(comments are locked)
|

You answered yourself... "constraints" ... On your rigidbody options, contraints, freeze the Y position so it cant ever move up or down.