ssaket Posted November 16, 2018 Share Posted November 16, 2018 Hi Devs, I am trying to rotate PlanePanel using TransformNode, but one strange thing that I observed is it's causing overlap between the meshes/buttons. Am I missing something here ? PG- https://www.babylonjs-playground.com/#HB4C01#53 Buzul 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 16, 2018 Share Posted November 16, 2018 Hiya S! https://www.babylonjs-playground.com/#HB4C01#54 In lines 43-46, I waited until scene ready (til after the panel rendered for the first time)... and THEN did the rotation. I don't know if it's operating correctly, but at least we know a work-around and a bit about the reason for the problem. update: PG #55 tries to eliminate the "flash" of un-transformed button-text... using a contorted button-by-button isVisible loop. ssaket and Buzul 2 Quote Link to comment Share on other sites More sharing options...
ssaket Posted November 16, 2018 Author Share Posted November 16, 2018 Thanks @Wingnut. Though still strange to me, why it is not able to apply transform properly without using scene.onReadyObservable, Is it a bug ? Quote Link to comment Share on other sites More sharing options...
brianzinn Posted November 16, 2018 Share Posted November 16, 2018 Before rotation this will work, too: anchor.computeWorldMatrix(); edit: https://www.babylonjs-playground.com/#HB4C01#56 ssaket and Buzul 2 Quote Link to comment Share on other sites More sharing options...
Buzul Posted November 17, 2018 Share Posted November 17, 2018 Hi everyone; https://www.babylonjs-playground.com/#HB4C01#57 Is it possible to rotate the part on the bottom right in this example to form a corner? //solved https://www.babylonjs-playground.com/#HB4C01#58 Sebavan and Wingnut 2 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.