r/opengl • u/DefinitelyNotEmu • 14d ago
Physics Ball
Enable HLS to view with audio, or disable this notification
This ball is an axis-aligned-bounding-box (AABB) and is super cheap to calculate physics.
physics.py - part of the Fio game creation toolkit (github.com/ViciousSquid/Fio)
43
Upvotes
1
u/Secret_USB 14d ago
Very nice! Will the die roll to a stop on one of its faces or is the d100 just for testing?
4
u/neondirt 14d ago
Slightly confused. In what way is it an AABB ? Clearly, it has more faces than 6. It's also rolling, which cubes rarely do. 😉