This question was
closed Nov 29, 2016 at 09:30 PM by
Platiniumekk for the following reason:
Problem is not reproducible or outdated
Question by
Platiniumekk · Nov 24, 2016 at 04:19 PM ·
raycastvector3quaternionangleray
Raycast under crosshair
Hi! I have problem with my ray. When im turning around shots are going wrong. i use Vector3 forward = this.transform.forward; forward = Quaternion.AngleAxis(10, Vector3.up) * forward; Ray ray = new Ray(Camera.main.transform.position, forward);
I want to rotate it relative to the crosshair. Can you show me how I can do this?
Comment
can you show a picture of the setup, because it's hard to say how things could be arranged relative to each other