A downloadable asset pack

Buy Now$2.99 USD or more

This engine must be used with GameMaker: Studio 1 or 2. If you don't have GameMaker: Studio you can download it from www.yoyogames.com

This asset doesn't use built in Game Maker Studio physics functions. For best performance use YYC compiler

This is an n-body simulation using verlet integration.


  • you can change the parameters of the simulation
  • you can change the size of the balls
  • you can create a "mega ball" which is mouse controlled, this affects other balls in the simulation
  • you can create immovable balls (walls) which interact with other balls

This implementation has O(n^2) complexity because GM:S doesn't support quad trees. With quad trees it is possible to have n-body simulation with O(n logn) complexity.

Download demo

If you want to stay informed about my new assets Subscribe to my mailing list. You also receive a FREE asset for subscribing.


This asset is also on YoYoGames Marketplace


Buy Now$2.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $2.99 USD. You will get access to the following files:

n_body_simulation_100.gmz 33 kB
n_body_simulation_G2.yyz 790 kB

Leave a comment

Log in with itch.io to leave a comment.