Hey, I have a raycast3D that when on a “attack” command creates a sphere at the end of its target position.
My problem is I don’t know(and have a hard time finding out…) how to account for the rotation of the raycast, so when I left click, the sphere is created as if the raycast is at its default 0,0,0 rotation. That is, when the raycast is pointing downwards.
Here is my code:
Help is appreciated!