Just a basic question here:
I have a game that has guns that can be found in the world, each gun can have a different scope. Example: A player can find a pistol, and put a RDS scope on it through the attachments menu.
Each gun has an empty gameobject called “ScopePivot” and this is where the scope is placed when the player selects it in the attatchments menu. When the scope is placed in attachments menu, its parent is set to the “ScopePivot” object, and its local transform is reset as well. This way any scope can be easily attached to any gun.
I was trying to find a way to implement Aim Down Sights. I have settled on lerping the scope to right in front of the cameras position, however because the scope is child on the gun, only the scope will move if I use this technique. This will leave a floating scope in front of the camera, and a gun still by your side in the idle animation.
Any suggestions on a good way to implement Aim Down Sights with my setup. Keep in mind that each scope will be a different height, width, ect…
I don’t need the code written for me as I’m fairly experienced in C#, but if anyone has a basic idea of how they would, or have, implemented this, it would be much appreciated.
Please comment if you think me explanation is hard to understand, as I can reword it or add pictures.
THANKS