very basic car physics

Hi,

i want a car in my 2D game. It should only behave like a car (physics) when its pushed by other rigidbodies. I don’t want to control the car with keys.

So how to setup this? One boxcollider and 2 wheel colliders as childrens?

Could you give a little more information. Is this car driving around on it’s own or you only want it to be hit by something and then have the car wreck? Is this car running around a track or a space on a directed path?

-Tim

the car should only behave like a rigidbody. If you hit it with another rigidbody it will roll a little bit and stop after some time because of friction.

its very basic. How to do this?

Must not be very basic if you are asking for help. According to the last post, you just need an object with a rigidbody component, maybe tweak the center of gravity (in the docs, look at the rigidbody page). When another object hits it, it will move. If you want to be fancy, put it on wheel shaped objects as well.

If you want it to be very much like a car, with a suspension and such, you must do some reading (gasp!).