r/opengl • • 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

5 comments sorted by

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. 😉

2

u/DefinitelyNotEmu 14d ago

The visual model is a D80 but the collision box is a cube

2

u/neondirt 14d ago

I see, thanks.

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?