Search Unity

super noob - RANDOM GRAVITY VALUES????

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

  1. martinamenegon

    martinamenegon

    Joined:
    Aug 28, 2014
    Posts:
    28
    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

    cl9

    Joined:
    May 31, 2013
    Posts:
    417
    Hi, to change world gravity in a script, you can change the vector Physics.Gravity