Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a way to pause simulation?
#3
(27-02-2019, 09:14 PM)josemendez Wrote: Short answer, no.

The simulation runs as a whole for each solver, there's no way to simulate some actors independently from others unless they use different solvers (and then you can just disable/enable each solver individually to pause/resume the simulation.) However by doing that, if you moved the actor around while paused, the particles would spring from their old positions to the new ones as if you had teleported the object suddenly while the solver "wasn't looking" (which is precisely what you'd done from a simulation standpoint).

However, since you have full access to all particle properties at runtime you can manipulate them in any way you need/want to achieve the effect you're after.

The way to do what you want is to set all the actor particles inverse masses and velocities to zero ("pause" their sim), manually set their positions/orientations (move them around while paused), then reset their inverse masses back to what they were before pausing.

http://obi.virtualmethodstudio.com/tutor...icles.html

cheers,

Thanks forĀ help. But if I changeĀ inverse masses and velocities to zero during simulation does it affect performance in some way? So I still have performance drop during "pause" because technically it will still simulate this item? Or no?
Reply


Messages In This Thread
Is there a way to pause simulation? - by mmortall - 27-02-2019, 06:55 PM
RE: Is there a way to pause simulation? - by mmortall - 28-02-2019, 02:39 PM