Just wondering if anyone knows how to produce radial, or circular, gravity. Could also be used to simulate magnetism, I guess.
Basically, I’d like everything in my game (concept right now) to gravitate towards the centre (or other arbitrary point, or points) like a black hole or something.
I’m guessing this isn’t a simple function of the physics engine which can be employed - but would it be best to implement it using something like really weak touch joints; absolutely positioning with some complex maths; mucking about with the gravity settings; or something with linear force?
Any ideas/sample code peeps?
Matt. [import]uid: 8271 topic_id: 4290 reply_id: 304290[/import]