A downloadable asset pack

Buy Now$0.99 USD or more

This engine must be used with GameMaker: Studio. If you don't have GameMaker: Studio you can download it at 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$0.99 USD or more

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

n_body_simulation_100.gmz 33 kB

Leave a comment

Log in with your itch.io account to leave a comment.