Tobi Posted July 25, 2017 Share Posted July 25, 2017 Hey All, I've been working on a trackball example, but i'm seeing some wacky behavior. I've created a drag plan that sits on top of the sphere which i use to grab my deltas values on mouse move. Initially, the movement of the sphere follows the mouse as it should, but eventually the mouse direction switches the rotation of the sphere in the opposite direction??? I know it must be a quaternion issue, but i'm not experience enough to figure it out. Any help would be appreciated. Thanks, Tobi. PG Example https://www.babylonjs-playground.com/#ZDLTXV#2 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 26, 2017 Share Posted July 26, 2017 Hi Toby, welcome to the forum. https://www.babylonjs-playground.com/#ZDLTXV#3 Better? I changed lines 89/90 from "LOCAL" to "WORLD". Hope this helps. Quote Link to comment Share on other sites More sharing options...
Tobi Posted July 26, 2017 Author Share Posted July 26, 2017 You are the man and a legend it seems! Thank you!!! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 26, 2017 Share Posted July 26, 2017 Thanks, my pleasure. Please mark this thread as solved. Thx. Some people are able to add a red "solved" tag onto the front of the thread title. I haven't learned how to do that, yet. http://www.html5gamedevs.com/forum/28-questions-answers/ See that red 'solved' tag on the front of Arte's thread title? Perhaps you or @Arte will teach me how to do that. Quote Link to comment Share on other sites More sharing options...
Tobi Posted July 26, 2017 Author Share Posted July 26, 2017 Done! There's a plus sign to the right of the tag(s) you can click on and it will display the tag(s) associated with the thread. Select the tag from the Tag list and drop down the item prefix box and select the tag you want to highlight and display in front of the thread title. Thanks again! Wingnut and gryff 2 Quote Link to comment Share on other sites More sharing options...
Arte Posted July 26, 2017 Share Posted July 26, 2017 1 hour ago, Wingnut said: Thanks, my pleasure. Please mark this thread as solved. Thx. Some people are able to add a red "solved" tag onto the front of the thread title. I haven't learned how to do that, yet. http://www.html5gamedevs.com/forum/28-questions-answers/ See that red 'solved' tag on the front of Arte's thread title? Perhaps you or @Arte will teach me how to do that. Wingnut, JohnK and gryff 3 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 26, 2017 Share Posted July 26, 2017 Thanks, guys! http://www.html5gamedevs.com/topic/2571-the-wingnut-chronicles/ Cooooool. 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.