Search Unity

Looking for a on-screen compass in Unity 4

Discussion in 'Immediate Mode GUI (IMGUI)' started by rddragon, Jun 24, 2013.

  1. rddragon

    rddragon

    Joined:
    Jun 19, 2013
    Posts:
    2
    I am trying to create a on-screen compass that will point the direct the player is moving. I am using a 3rd person controller with a camera attached and following. I found a couple that is from a 1st person perspective but not from a 3rd person.
     
  2. Krodil

    Krodil

    Joined:
    Jun 30, 2010
    Posts:
    141
    could you not make the rotation of the compass needle the same as rotation of the player in the world coordinates..for instance transform.rotation.y
     
  3. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    There's an excellent (and cheap, $25) map system on the asset store - providing the "compas" out of the box, be sure to check it out: KGFMapSystem.