Page 1 of 1

Hello to the Community

Posted: Sat Apr 20, 2013 8:00 am
by misterspok
First of all I'd like to say Hello to LOVE Community (which is friendly at first glance).
The second thing I'd like to remark is, that I choose LOVE to bring to life my small game idea, because it is, in fact, very popular 2d engine throughout the Internet (and because it uses such a sismple, but powerful and flexible language as Lua).

And now the First question I'd like to ask the Community (I used Search :) ): Is there such a thing as Spherical gravity simulation in LOVE physics engine?

P.S. I'm not a native english speaker, so I apologize for any mistakes in this (and all other) post :)

Re: Hello to the Community

Posted: Sat Apr 20, 2013 9:56 am
by Robin
Welcome! For spherical gravity, you'll probably want to calculate the angle of gravity for each object and then call Body:applyForce.

Note that love.physics is intended for objects of about 1-10 meters in size. If you want planetary simulation, it might be a good idea to roll your own gravity simulation.

Re: Hello to the Community

Posted: Sun Apr 21, 2013 8:50 am
by misterspok
Straight to the point :) That is the way I want to use spherical gravity - planetary simulation. If I have to do my own gravity simulation for it - it's even better! :) I know a few formulas how to do it.
Thank you.

Re: Hello to the Community

Posted: Tue Apr 23, 2013 7:44 am
by misterspok
BTW. Is there any chance we can get Q&A moderated thread for - well - questions and answers?

For instance, I have a question "What Lua version does LOVE 0.8.0 use?". And I don't see any point to create new thread to ask it.