Hello, I was wondering if there is any one variable you can reference when writing scripts to change gravity? If there isn’t, what is a good way to go about changing gravity when a certain thing happens?
You can reference the the gravity variable in a script like this:
This returns a Vec3 property. You can take a look here as well for more information: RigidBodyComponentSystem | PlayCanvas API Reference
Thank you, this helps a ton.