reuvenDM Posted March 28, 2016 Share Posted March 28, 2016 Hello, I'm a newbie to BJS, just starting (-: LOVE IT! Got a small question please:http://www.babylonjs-playground.com/#1LENIZ#12 I've got a stack of box meshes. i can rotate the stack. but when i pick a box from the stack i want to rotate this single mesh only so the entire stack stay on place. Thank you! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 28, 2016 Share Posted March 28, 2016 Hi @reuvenDM, welcome to the forum! http://www.babylonjs-playground.com/#1LENIZ#13 Your camera was trying to pan while you rotated boxes. SO, on pointerDown, I detached the cam (line 111). OnPointerUp, I re-attached it (line 132). Is this working better now? I hope this helps. Nice-lookin' playground/code, rDM. well done! GameMonetize and reuvenDM 2 Quote Link to comment Share on other sites More sharing options...
reuvenDM Posted March 28, 2016 Author Share Posted March 28, 2016 So very perfect solution! Thank you Wingnut!! I really enjoy playing with BGS (-: Wingnut 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.