2D Physics Engine

Autor: Samac, Luka
Přispěvatelé: Mihajlović, Željka
Jazyk: chorvatština
Rok vydání: 2022
Předmět:
Popis: U ovom radu, prikazane su faze izrade fizikalnog pogona za simulaciju krutih tijela te fizikalna podloga potrebna za njegovu izradu. Implementacija je pisana u jeziku Javascript. Pogon radi u stvarnom vremenu te pretpostavlja da je između dva okvira uvijek prošlo jednako vrijeme (60 okvira u sekundi). Opisani su algoritmi detekcije sudara konveksnih objekata te formule za rezoluciju sudara. Algoritam korišten za detekciju sudara je SAT algoritam, a fizikalne formule dobivene su iz mehanike krutih tijela. Fizikalni pogon implementira interakciju s korisnikom te sadrži kratki opis potrebnih funkcija za interakciju. In this thesis, steps of making a physics engine for rigid bodies and the physics behind it are presented. The implementation was written in Javascript. The engine works in real time and assumes that the same time has passed between two frames (60 frames a second). Collision detection algorithms for convex polygons and collision resolution are described. Separation axis theorem algorithm was used for collision detection and the physics formulas used for collision resolution were obtained from rigid body mechanics. The engine implements basic user interaction and contains a short description of functions needed to obtain it.
Databáze: OpenAIRE