Author Topic: [SOLVED] Arrow to aim  (Read 4865 times)

CastorHolyday

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
[SOLVED] Arrow to aim
« on: January 02, 2014, 02:43:04 PM »
Hi, I'm willing to make something similar to the image above, focus on the arrow is that something that should be done using the GUI (NGUI), if so what do you advice me to do or start with, I'm new to NGUI, so I was wondering if it has something to do with 3D-NGUI, or ? because I want the arrow to be like if it was under the character, so if it's pointing to the top it should be "under" the legs of the character not over him.

https://www.dropbox.com/s/v4zbgowwhk61mje/ecb8d7928d3023fbx.PNG

Any suggestiong ? or pseudo logic ?
« Last Edit: January 12, 2014, 07:24:18 PM by CastorHolyday »

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Arrow to aim
« Reply #1 on: January 02, 2014, 05:43:25 PM »
It's easier to actually make that with your own system than with NGUI I think.

Notice that it follows the ground, so you need a texture that either has its quad follow the ground, or do a projection onto the ground (if you want it to follow geometry). You can do this with unity:
http://docs.unity3d.com/Documentation/Components/class-Projector.html

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Arrow to aim
« Reply #2 on: January 03, 2014, 04:05:37 AM »
Yeah it should be done by projecting a texture, not using NGUI.

CastorHolyday

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Arrow to aim
« Reply #3 on: January 03, 2014, 05:02:31 AM »
Ah I understand you guys are right  ;D
Merci for the answers  ;)