Hi all
I have one specific problem.
As you can see on picture Im raycasting from camera to player unit (blue hexagon) and then it continues.
Id like to have a sphere (red circles, there are two of them as to be 2 examples) which will move with vector.
This could be done (I suppouse) when Ill take direction vector somewhere on that raycast, lerp it and set it as position for the sphere.
First time I through Ill use 50% lenght of raycast between terrain and camera, but it will not work. Height is different in each position.
But I need to have sphere on exact height. Let say 30m from world origin. Never will go +/- Y. But should move in X and Z.
Why Im using raycast from camera through model? Because Im using air and groud units and from player point of view (is it shoot em up game) is this solutinon more precise then to have only colliders. Then is different angle when is it on bottom or on top of the screen.