Game
Floatlands
9 years ago

Projectiles & Bounciness


Floatlands has another addition – Projectile system. Until now, only weapon animations were present in the game, without actual bullets, so the shooting experience wasn’t quite genuine. This chapter will go over projectiles that launch from a weapon and how they bounce from other objects and surfaces.

The projectiles are drawn with a white line. Velocity verlet integrator was used for simulating bullet forces because it produces almost no error and is simple to implement. If you wish to learn about verlet velocity, this is good article to read: Doing gravity right

BOUNCINESS

Projectiles also support bouncing off the surface. If the angle between a bullet and a normal is right enough, the bullet will bounce otherwise it will stop. Random error is added to velocity after bounce too, so that it’s path is less predictable. Shooting bullets into cave gets interesting, because bullets bounce to every imaginable direction.

http://floatlands.net



0 comments

Loading...

Next up

Player panel showing all the player stats, gear and your PAL (companion) stats as well.

Playing around with player skins.

Buzzard helicopter

Added some basic icons to player panel.

DeepEnd Submarine

Show companion animation

Procedurally generated example of Mainland and nearby ground islands with lots of biomes.

Biome color experimenting

Polishing our new grass solution.

Working on game weather, cloudiness in this particular case.