Day 39 – [SinC] – Gun, Projectile and Animation
Mirrored from my blog (en, pt-br).
Today I started making the projectile. In fact as I couldn’t think of anything much different just following the same style.
Testing the projectile with the gun I saw that the tip of the gun was not cool with that kind of projectile actually what was strange was that the rayCast modify the angle of the emptyGameObject which is the origin point of the projectile. When the gun was aiming at something near the projectile did not follow parallel with the “clamps” of the gun. In the end I ended up modifying the gun.
After I modified the gun I started working on modifying the script that manages the speed and mass, as there was no need to change a lot was quite easy.
In the end I ended up doing an animation. I did an animation of the gun shooting into Blender. The animation was very simple and the process of importation and use of animation in Unity was very simple too.
Tomorrow I will continue doing the gun and I intend to add some feedback of selected projectile.
PS: Sorry for the bad english.