nathanidp Posted August 27, 2018 Share Posted August 27, 2018 Currently i'm using the dragStart() function of the pointerDragBehavior. I have set the object position to (0, 1, 0) before creating the pointerDragBehavior and the planeNormal to (0,1,0), however when I run the dragStart() function, the dragPlanePoint is not right (y is 0) and the object y position goes back to 0 on drag. How do I update the dragPlanePoint when I run dragStart() ? Quote Link to comment Share on other sites More sharing options...
nathanidp Posted August 27, 2018 Author Share Posted August 27, 2018 Do you think there's a link between my problem and this issue : https://github.com/BabylonJS/Babylon.js/issues/5005 ? Quote Link to comment Share on other sites More sharing options...
nathanidp Posted August 27, 2018 Author Share Posted August 27, 2018 Solved, I needed to run computeWorldMatrix(true) on my object and run the init() function on my pointerDragBehavior object Quote Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2018 Share Posted August 27, 2018 Well done! 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.