NicoC Posted October 20, 2015 Share Posted October 20, 2015 I'm new on Three.js and I can't find how quaternion works: it's like it always refers on local part referential and not the global one.I've illustrated it here : http://jsfiddle.net/ehsktuj2/13/ The rotation quaternion of the green box is via the vector (0,0,1) but it's not in the global referential, it's the one of the projected referential of the green cube. How can I project the quaternion back on the global referential? So that the green cube rotates via the (0,0,1) vector of the scene? Quote Link to comment Share on other sites More sharing options...
saldukoo Posted March 11, 2016 Share Posted March 11, 2016 Is there a reason you're doing this _cubeRed.add(_cubeGreen); Instead of this? scene.add(_cubeGreen); Doing this switch makes the green cube rotate around the world z axis. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.