- Home /
Question by
Sinperhezine · Mar 19, 2013 at 11:40 PM ·
gunhudrecoilthird person shooter
Recoil for a third person shooter and active reticle
I'm working on a third person shooter and have part of the recoil code down to throw the shot the problem i'm having is return resting it to the initial direction once the player has stop shooting.
also does anyone know how to design for an active reticle such as it growing in size when the player shoots.
Comment
Answer by Komak57 · May 21, 2013 at 02:48 AM
save the size/position either in the Start() event, or keep track of various events yourself in the update() event, and scale the re-size back to that. I usually keep an identical variable starting with an underscore (ex: ReticalPosition with _ReticalPosition) to either keep my 'saved' state, or to do the actual modifications and leave to other as 'saved' state.
Your answer
![](https://koobas.hobune.stream/wayback/20220613094727im_/https://answers.unity.com/themes/thub/images/avi.jpg)