Asteroid game with minimal physics using GJK algorithm as collision detection

preview_player
Показать описание
The game has sound, but my screen recorder cannot record that. It has a very 8-bit sound the closest I could do to resemble the original asteroid game. I made this game just to test how well the GJK algorithm can detect collisions with some minimal physics involved (done in Processing v3.5).
Worth 5 minutes of gameplay, but mostly to be used as a reference, as there are lots of geometric algorithms here.
Besides the GJK algorithm, the game also has functions to calculate: polygon area, mass moment of inertia, polygon centre, polygon rotation, screen space-warping (toroidal mapping) without artifacts, elastic collision/linear momentum for velocity updates, angular momentum, and more.

Source code:
Рекомендации по теме
Комментарии
Автор

Amazing 😃 (by the way... the video is.. Unlisted?)

maxdevjs
welcome to shbcf.ru