Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Gyroscope in fluid
#2
(15-03-2021, 03:37 PM)enchu_99 Wrote: Hi, Can I do gyroscope to control the 2d fluid?  Triste 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.
Reply


Messages In This Thread
Gyroscope in fluid - by enchu_99 - 15-03-2021, 03:37 PM
RE: Gyroscope in fluid - by josemendez - 15-03-2021, 03:52 PM
RE: Gyroscope in fluid - by enchu_99 - 16-03-2021, 06:38 AM
RE: Gyroscope in fluid - by josemendez - 16-03-2021, 08:06 AM