Friday, March 16, 2018


As a part of my programing class tutorial, i learn three different ways of how to do a projectile for a weapon, line trace, projectile and physical object. I learnt that the line trace is the easiest way to do a projectile and it is used for fast moving projectiles that follow a steady path, such as machine gun or energy beams, lasers and etc. The projectile movement is good for projectiles that can change their direction but you don't want to depend it on physics or for homing projectiles.Where as physical object is good for something like a grenade or any other projectiles that can bounce of the surface.

As my initial idea i wanted to use simulate physics for a grenade, so that i can have the grenades bouncing off the surfaces or splitting in more projectiles as it hits a surface.

However,  i decided to change it to a homing projectile using stuff that i learnt from the tutorial, however the obstacle was that the tutorial only showed how to home on a single target ( set before the game starts), which makes it impossible to change within the game. In order to overcome that obstacle i decided to use the line trace to set a target for a projectile to hit, and after a small delay the projectile with home onto a target using a projectile moving. As a result I combined two ways of making a projectile for a weapon and created a system weapon for my gun.
















Particle ideas for my weapon:

No comments:

Post a Comment