Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move fluid based on device orientation - ObiSphericalForceZone?
#4
(01-11-2018, 06:17 PM)josemendez Wrote: Hi there,

You can use the reading from the device's accelerometer to drive gravity directly. Change the gravity in the solver, and don't forget to call solver.UpdateParameters() afterwards. That should do it.

Hi there!

Sorry for the totally newbie question : I'm trying to access to the solver gravity in my script,  but I'm having compilation errors.
 'ObiSolver' does not contain a definition for 'gravity' and no extension method 'gravity' accepting a first argument of type 'ObiSolver' could be found (are you missing a using directive or an assembly reference?) 

How should I proceed?

Thanks for any help.
Regards,
Adrien
Reply


Messages In This Thread
RE: Move fluid based on device orientation - ObiSphericalForceZone? - by AdrienMondot - 05-11-2018, 04:36 PM