Bottle Flip
Blast from the 2010s
Here's a bottle flip game prototype with (somewhat) realistic physics.
Written in Rust using the Bevy game engine and the Avian physics library. Made with ❤
How do you play?
The game play is limited at the moment, to say the least.
Grab the bottle, wiggle it, and release. Land the bottle upright and pump your fist in the air!
How does it work?
According to Wikipedia, the complex physics behind bottle flipping incorporates concepts of fluid dynamics, projectile motion, angular momentum, centripetal force, and gravity. Whoa!
Fortunately things can be simplified
Apparently gazillion of teeny water particles in a bottle can be simulated by just having two huge ones. Tossing a bottle partially filled with water essentially acts in the same way as a tube with two tennis balls, as described in the paper "Water bottle flipping physics" by Dekker et al., 2018.
Source code on Github.
Status | Prototype |
Platforms | HTML5, Windows, macOS, Linux |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | Claudijo |
Genre | Platformer |
Made with | Rust |
Tags | bottle-flip, Physics |
Code license | MIT License |
Average session | A few seconds |
Inputs | Mouse, Smartphone |
Links | Support, Source code |
Leave a comment
Log in with itch.io to leave a comment.