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??
thanks in advance
Hi, to change world gravity in a script, you can change the vector Physics.Gravity
1 Like
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