Quantcast
Channel: Answers for ""Hacking" the lookAt function"
Viewing all articles
Browse latest Browse all 4

Answer by Owen-Reynolds

$
0
0
It seems to me that the end result you're wanting is their "click arrow." Like, if they were click-firing a laser, this is where it would start and aim. You could then raycast, launch a rocket...whatever, using that click arrow. As T27M hinted in a comment, the "click arrow" is built in the first step of a ray cast: `Camera.main.ScreenPointToRay(Input.mousePosition);` That uses the imaginary front-plane of the camera as a start point (no need for you to make it.)

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images