ios - How to pause and resume UIDynamicAnimator physics simulation -


how go pausing , resuming uidynamicanimator's physics simulation? there no way programmatically pause , resume. there "paused" state when items @ rest am looking different. example, i'd have item being pulled gravity field, press pause button pause simulation, , press resume button , have simulation resumed if nothing happened. item maintains it's trajectory, velocity, etc.

my hunch have somehow save item's physics properties, remove dynamic behaviors, , add dynamic behaviors mimic saved physics properties before. right approach?

you can removing behaviours using removeallbehaviors(). restart simulation have add each behavior


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

minify - Minimizing css files -

Connecting Spring Batch to Remote Cassandra Database -