So basicaly this one is out of my league ,I am strugling how to edit this script but its not working for me.
this part is problem:
GroundEffect.transform.localRotation = Quaternion.FromToRotation(Vector3.forward, Hit.normal);
GroundEffectMain.transform.localRotation = Quaternion.FromToRotation(Vector3.forward, Hit.normal);
GroundEffectSec.transform.localRotation = Quaternion.FromToRotation(Vector3.forward, Hit.normal);
thats the rotation of the particle that shows on the terrain on the end of my ray line when I start shooting ,now the problem is I want particle to go up allways but its not doing that ,it goes in alldirections if vector3 is forward ,and it goes towards me if I set it to be vector2.up.
How should this part of script look in order dirt particle to go allways up, or at least 90 degree normaly on the end of my ray line.Sorry for bad explanation.