[SOLVED] Resetting Gravity Via Code

Hi all,

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

This is what you want:

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

2 Likes

Thanks a lot @will, this was very helpful