matter-attractors
matter-attractors copied to clipboard
Disabling the attractors at will.
Hey so I'm working on creating body orbits which pull certain other bodies towards them. I've managed to create the code that allows some bodies to only exert forces on certain other bodies but right now my orbits don't work properly as the forces are constantly being applied to the attracted ones even after they reach the desired orbit (range away) around the attractor.
Is there a built-in sleep switch for matter-attractors? If not can you maybe point me in the right direction where I could implement such a feature myself within your project? This would really come in handy as the device that I'm coding this for doesn't have a lot of processing power (it's a table top AR projector) and I want to make the app take up the least amount of CPU time possible.
Thanks!
I would also like to know if this is possible.