Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Rigidbody (car) torque problem

Discussion in 'Scripting' started by Kreibich, Sep 10, 2013.

  1. Kreibich

    Kreibich

    Joined:
    Aug 9, 2013
    Posts:
    7
    I'm trying to make car physics using rigidbodies with joints and i've got 2 problems:

    1) nevertheless what torque i put on wheel, it's still slow.

    Video of model and source code here: http://www.youtube.com/watch?v=d7Ex1dxCHow

    2) Configurable joint allows only absolute axis freezing, but not relative ones... So when i turn my wheels left or right, they fall down... when i move them 90 degrees by X axis, they normaly turns left or right (as seen on video)

    Here is a screenshot, that shows how did I configured a joint:

    $joint.png
     
  2. Kreibich

    Kreibich

    Joined:
    Aug 9, 2013
    Posts:
    7
  3. Kreibich

    Kreibich

    Joined:
    Aug 9, 2013
    Posts:
    7
    Now it looks like this: http://www.youtube.com/watch?v=3IxuBPcVeKc ... i think that configurable joint has some problem with springs even they're 0 and axes are fixed. (sorry for the music in video, but it captures the atmosphere of the game :D )
     
  4. Digital

    Digital

    Joined:
    Feb 6, 2011
    Posts:
    182
    You need to know what are you doing with c. joints. Download my Tank Simulation and take a look how c. joints can be used. Most of the things are created in that simulation is done with them. Springs are working just fine, you just need to understand the c. joints.
     
  5. Kreibich

    Kreibich

    Joined:
    Aug 9, 2013
    Posts:
    7
    OK, i'll try to find some c. joints tutorial
     
  6. Kreibich

    Kreibich

    Joined:
    Aug 9, 2013
    Posts:
    7
    Nothing found.. All the people use wheelcollider on cars instead of real physics. :(