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

super noob - RANDOM GRAVITY VALUES????

Discussion in 'Physics' started by martinamenegon, Nov 27, 2014.

Thread Status:
Not open for further replies.
  1. martinamenegon


    Aug 28, 2014
    Hi! So I'm having hard time finding a solution.. I have my ragdoll, which is moving from the hip (which is kinematic) to the center of the scene... I would like thou that the bones are affected by different gravity values. I know how to set gravity in project setting but this is a one time only or?
    I would like this value in project setting to change randomly... is anyone having a solution? or a hint?
    anything not to drive me crazy?? :p
    thanks in advance
  2. cl9-2


    May 31, 2013
    Hi, to change world gravity in a script, you can change the vector Physics.Gravity
    GamerLordMat likes this.
  3. GamerLordMat


    Oct 10, 2019
    You can set gravity on zero then do yourRigidBody.AddForce(myGravityValue, ForceMode.Acceleration) to have custom gravities for every object. Otherwise cl9-2 has written the answer.

    EDIT: the thread is 8 years old never mind xD
Thread Status:
Not open for further replies.