Raycast Direction For AI Car

UncleFesterson

New member
Is there a way to have the direction for a raycast be calculated for an object that is at a random euler angle on the Y axis? For example, I have AI cars in my scene view pointed in various directions on the Y axis and there's 6 raycasts pointing out at slightly different directions facing forward for each car. I just want to be able to have the raycasts all face forward for each car but at those same angles specified as the raycast directions in the raycast behavior tree task.
 
The easiest solution for this would be to create a new task that does this. It'll give you the most control over the raycast direction.
 
Top