[SOLVED] Resetting Gravity Via Code


#1

Hi all,

I would really like to know there’s a way to reset gravity in a scene through code. This is pretty urgent…


#2

This is what you want:

https://developer.playcanvas.com/en/api/pc.RigidBodyComponentSystem.html#setGravity


#3

Thanks a lot @will, this was very helpful