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.

Published 2 days ago
StatusPrototype
PlatformsWindows, macOS, Linux, HTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorClaudijo
GenrePlatformer
Made withRust
Tagsbottle-flip, Physics
Code licenseMIT License
Average sessionA few seconds
InputsMouse, Smartphone
LinksSupport, Source code

Download

Download
bottle-flip-linux.zip 22 MB
Version bottle-flip-0.1.4 2 days ago
Download
bottle_flip-macOS-apple-silicon.dmg 21 MB
Version bottle-flip-0.1.4 2 days ago
Download
bottle_flip-macOS-intel.dmg 21 MB
Version bottle-flip-0.1.4 2 days ago
Download
bottle-flip-windows.zip 16 MB
Version bottle-flip-0.1.4 2 days ago

Leave a comment

Log in with itch.io to leave a comment.