Weird Compass problem

  • Hi all!

    I have a strange problem with the compass plugin. I've been using it without any issues so far and I just can't understand what's going on now.
    It shows North and South correctly but when I turn to the left (supposedly to the West) the compass pointer rotates to the right - towards East instead.
    Any ideas why?

    Thanks in advance!

  • Think I've found a solution.
    I've changed this

    sub(plugin[compass_pointer].rotate, heading, view.hlookat);

    to this

    sub(plugin[compass_pointer].rotate, view.hlookat, heading);

    and it's working now exactly as it should.

    Strange enough though...

Jetzt mitmachen!

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