2D Physics Engine
Autor: | Samac, Luka |
---|---|
Přispěvatelé: | Mihajlović, Željka |
Jazyk: | chorvatština |
Rok vydání: | 2022 |
Předmět: |
physics engine
mehanika rigid bodies TEHNIČKE ZNANOSTI. Računarstvo static engine Javascript fizikalni pogon pogon u stvarnom vremenu sudari collisions user interaction SAT algoritam detekcija sudara real-time engine kruta tijela SAT algorithm TECHNICAL SCIENCES. Computing statički pogon interakcija s korisnikom collision detection 2D mechanics |
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 |
Externí odkaz: |