- Home /
Dirt particle when shooting ground angle problem.
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.
better question would be ,do I even need rotation for particles effects if I want them to show in same direction as prefab particle default?
Nope it obviously doesnt need rotation , just tested ,I am so dumb ....
Answer by Grizzly · Aug 18, 2014 at 06:35 AM
Yup problem completly solved ,just so dumb .. ,Il be glad to help anyone who has same problem.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Rain Particle random start 0 Answers
Shuriken Particles - Horizontal Billboard doesn't draw full size (but normal Billboard does) 3 Answers
Why is this giving me a null refrence exeption? -1 Answers
RayCast not moving with Game Object 0 Answers