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.
0 comments