ovmihai Posted September 10, 2015 Share Posted September 10, 2015 Hello, i was wondering if there is any solution for dragging a mesh in orthographic mode with the same speed of the cursor, so the mesh will constantly be under the mouse ? Thank you. Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted September 10, 2015 Share Posted September 10, 2015 Hi, you can follow this example of Drag'n'drop, there's no reason it wouldn't work with orthographic camera : http://playground.babylonjs.com/?18 Quote Link to comment Share on other sites More sharing options...
ovmihai Posted September 14, 2015 Author Share Posted September 14, 2015 With orthographic camera it's the same as it is in the example with the arcrotate. If you move the object back and front you will notice a small offset that it is applied to the mouse, it is not fixed to the point where you grabbed the mesh. Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted September 14, 2015 Share Posted September 14, 2015 Yes, you're right, I don't know why this slight offset happen. Quote Link to comment Share on other sites More sharing options...
ovmihai Posted September 14, 2015 Author Share Posted September 14, 2015 Any idea anyone ? 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.