Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Quaternion getRotation broken

#193

The quaternion getRotation (accessible by SceneJS.withNode("myRotation").get("rotation")).
it basically returns {x: NaN, y: NaN, z: NaN, angle: NaN} or rubbish values.

Reported by Salomon BRYS · December 12th, 2010 @ 06:25 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Salomon BRYS
    Salomon BRYS

    Fix pull request : https://github.com/xeolabs/scenejs/pull/29

    Turns out that the quaternion was normalized using a vector3 len, and not a vector4.
    Quaternion normalization are vector4 normalization (and thus use vector4 normalization).

    I chacked on several quaternions and the given values are good.

    December 12th, 2010 @ 06:35 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.