Page 1 of 1

Is there a sensible method of using love.physics for planetoids?

Posted: Wed Jul 05, 2017 1:35 pm
by FatalMarshmallow
When a world is created using love.physics.newWorld it has set gravity in both the x and y planes, which to me seems like it will be unusable for attracting objects towards a planetoid with position and mass from all directions. This is very early stages at the moment, but am I just being an idiot, or should I start looking at long and complex work-arounds? Many thanks. :)

Oh, I guess here is a .love file which is mainly just the love.physics tutorial I've editted to resemble some form of moon on a string. :/

Re: Is there a sensible method of using love.physics for planetoids?

Posted: Wed Jul 05, 2017 1:45 pm
by raidho36
You'll have to simulate your own gravity. Apply force to all bodies in proportion with their weight in the direction and magnitude you need.