Spankied Posted November 27, 2017 Share Posted November 27, 2017 Basically, I want to nest scene.onPointerDown On the first pointer down event i wanna set an origin point. On the second pointer down i want to set translation. Currently the origin is defaulted to (0x, 0z) and the first & only pointer down sets the translation point. Heres the playground I'm working with. http://www.babylonjs-playground.com/#XBGEQ#5 Ignore my poor linear algebra- just picked it up yesterday. Quote Link to comment Share on other sites More sharing options...
Arte Posted November 27, 2017 Share Posted November 27, 2017 Hi @Spankied Just use count clicks Line: 109-115 http://www.babylonjs-playground.com/#XBGEQ#7 Wingnut and Spankied 1 1 Quote Link to comment Share on other sites More sharing options...
Spankied Posted November 27, 2017 Author Share Posted November 27, 2017 @Arte Thanks, that should work. Marking this as solved. Gonna get some sleep then work on new algorithm. Meanwhile theres another issue i need advice on. Right now im creating a bunch of lines to imitate shape of a box. Id rather use that vertex data to create an actual box. Any suggestions? Arte 1 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.