15-03-2021, 03:52 PM
(This post was last modified: 15-03-2021, 03:52 PM by josemendez.)
(15-03-2021, 03:37 PM)enchu_99 Wrote: Hi, Can I do gyroscope to control the 2d fluid?I cant figure out how to control the water by using gyroscope controller? is it impossible to do it?
You can just set the solver gravity, it's pretty easy:
Code:
solver.parameters.gravity = <your accelerometer gravity>;
solver.UpdateParameters();
How to get the gravity value measured by the hardware varies depending on which input system you're using.