Search Unity

car keeps flipping over

Discussion in 'Physics' started by RensDevolp, Feb 26, 2015.

  1. RensDevolp

    RensDevolp

    Joined:
    Aug 10, 2014
    Posts:
    31
    i made a perfect car enter/exit script. the first time i enter the car goes fine. you have a perfect handling. but when you get out and get in again, the handling is terrible. when you go trough an corner, the car flips over.
    it looks like the balans is gone. i have tryed making the car havier and i also tryed explode the car and then instatiate a new one. this failed all.
    this is verry anoying. if you have any answers or need scripts, just ask.


    kind regards,

    rens
     
  2. Twelv445

    Twelv445

    Joined:
    Feb 22, 2013
    Posts:
    32
    What vehicle physics are you using? Are you using wheel colliders at all? You'll need to provide more information on how you are handling the physics.

    Also make note of http://docs.unity3d.com/ScriptReference/Rigidbody-centerOfMass.html

    as well as the fact that cars use Anti Roll bars in real life to stop flipping over, wich is often replicated in code, especially when used with Unity WheelColliders
     
  3. Twelv445

    Twelv445

    Joined:
    Feb 22, 2013
    Posts:
    32
  4. RensDevolp

    RensDevolp

    Joined:
    Aug 10, 2014
    Posts:
    31
    i'm using the car from the vechile physics toolkit. so that is with wheelcolliders
    thanks for the link. is there a downforce script or so?

    thanks for the reply's

    rens