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

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -