Gravity simulation

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
darkfrei
Party member
Posts: 1169
Joined: Sat Feb 08, 2020 11:09 pm

Gravity simulation

Post by darkfrei »

Hi!

I've made small simulation of gravity. No collisions, but you can simulate up to 1000 bodies with up to 14 fps. Such big simulation need about half million of interactions with each other body.

By default only 30 bodies, relative huge gravitational constant.
Attachments
gravity-1-01.love
(1.36 KiB) Downloaded 261 times
2020-11-11T23_10_57-Gravity v1.01.png
2020-11-11T23_10_57-Gravity v1.01.png (32.71 KiB) Viewed 5387 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests