Rotating puppet (radar)

  • Is there way to put a specific puppet on image map, to show on which spot we are (active spot) and in which direction we are faceing (heading)?

    I think about something like we can view on the Street View. As I see, the effect is builded up by around 15 different png-s which switches if you turn around.

  • Is there way to put a specific puppet on image map, to show on which spot we are (active spot) and in which direction we are faceing (heading)?

    I think about something like we can view on the Street View. As I see, the effect is builded up by around 15 different png-s which switches if you turn around.

    set onviewchange event

    Code
    add(a,view.hlookat,layer[radar].heading);mod(b,a,360);


    then you get a number between -359.9999 to 359.999999 ,make a condition judge,change your png crop

    Edited once, last by tmhok (May 15, 2014 at 3:07 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!