Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Need Help Creating A Crosshair

Does anyone have any idea how to create a crosshair similar to the one seen here? My guess is to get the direction of the planes nose and use something like ScreenToWorldPoint but in reverse?

Best Answer

  • MouledouxMouledoux Member
    Accepted Answer
    Vector2 screenPos = Camera.main.WorldToScreenPoint(plane.transform.position + Vector3.forward * 100f);

    It may be 'plane.transform.position + plane.transform.forward * 100f'

    I always get transform.forward and Vector3.forward confused when trying to get the local forward. I thinnk the Docs say Vector3.forward is local, and not global, despite what you may think.


  • BarjiBarji Member

    That's odd lol. Transform.forward is definitely local. And Vector.forward is global. Thanks for the help dude it's appreciated!

Sign In or Register to comment.