how to determine what a character is aimed at

I need to figure out how to a) create cross-hairs, and b) use that to determine what it is aimed at so that I can have a global variable name aimedAt for on-click interaction. Any ideas.

It’s called RayCasting. You should read up Unity’s manual about them… sorry to not give a full tutorial here, but it’s a largish subject :slight_smile:

basically you project a line into a given direction (and optionally for a certain distance), and it returns whatever it hit.

Cheers

Thank you. This will help a lot.