Hello to the Community

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
misterspok
Prole
Posts: 20
Joined: Fri Apr 19, 2013 12:40 pm

Hello to the Community

Post 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 :)
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Hello to the Community

Post 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.
Help us help you: attach a .love.
User avatar
misterspok
Prole
Posts: 20
Joined: Fri Apr 19, 2013 12:40 pm

Re: Hello to the Community

Post 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.
User avatar
misterspok
Prole
Posts: 20
Joined: Fri Apr 19, 2013 12:40 pm

Re: Hello to the Community

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 8 guests