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

    Einmal editiert, zuletzt von tmhok (15. Mai 2014 um 15:07)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!