13-05-2024, 08:26 PM
(This post was last modified: 13-05-2024, 08:28 PM by josemendez.)
Hi!
It is no longer necessary to access the internal parameters struct and push the parameters manually. Use solver.gravity directly, like this:
Note you can also choose whether the gravity is expressed in local or world space, changing solver.gravitySpace. See the API docs for details.
It is no longer necessary to access the internal parameters struct and push the parameters manually. Use solver.gravity directly, like this:
Code:
solver.gravity = myGravityVector;
Note you can also choose whether the gravity is expressed in local or world space, changing solver.gravitySpace. See the API docs for details.