Spooky Pooky #19 - Buoyancy
Published on 10 Mar 2015 by Joe
I took my eye off the ball for one second and .. bamm! Six weeks flash by.
Still here, still plugging away. Got distracted by setting up an 'identity' and a new website plus some distracting business in so-called real-life.
Here's the scoop. I've started fleshing out level 4 for my 'vertical slice' as the cool kids seem to be calling it these days.
This level introduces water which gave me cause to examine my appalling stop-gap physics code that was pretending to implement buoyancy. Fixing that then led to a closer look at my stop-gap code for collision response. And so on. Obviously if I was some sort of UnRealIty engine 2/3/4 I wouldn't be messing about with this kind of stuff. But where would my self-respect be then, eh? I'd actually have to get on with gameplay and the like. Shudder.
Look here's a large GIF with some floaty, nudgey kind of stuff:
Luckily I rediscovered Chris Hecker's 18 year old physics series or I'd still be embedded in a wall.
Next up is ensuring that an animated skeleton realistically sinks in water until he gets his lungs, whereupon he can swim n' stuff. Unfortunately he can then also drown. I'm going to get some gameplay out of this thing if it kills me.