Search Unity

effect car mass on car behaviour

Discussion in 'Editor & General Support' started by masood-t, Nov 25, 2012.

  1. masood-t

    masood-t

    Joined:
    Nov 25, 2012
    Posts:
    13
    Hi
    i made a car with wheel and make a code to move it.
    every thing is OK but a problem occur:
    car mass don't affect on car behavior .
    i use this code

    FrontLeftWheel.motorTorque=EngineTorque/GearRatio[CurrentGear] * Input.GetAxis("Vertical");
    FrontRightWheel.motorTorque=EngineTorque/GearRatio[CurrentGear] * Input.GetAxis("Vertica


    it means my car can climb up of a hill with mass=100 or mass=500000
    it is happened in cartutorial in offical cartutorial at :"http://unity3d.com/support/resources/tutorials/car-tutorial" and unity3d cartutorial at "Unity3D Car Tutorial" at "http://www.gotow.net/andrew/wordpress/?page_id=78"
     
    Last edited: Nov 26, 2012