I was wondering how or if you can cast a diagonal ray in unity.
see in my game one of the players weapons is a shotgun and i wanted to cast 3 rays from the player eg. one going straight forward and one on either side going around 45 degrees.
is this possible ? how would i do it ?
could i cast a ray from point A to point B with both Point A and B having a (x,y,z) location?
code would be great thanks :)