Buzul Posted November 14, 2018 Share Posted November 14, 2018 Hi everybody... I readed many documents but i couldn't find any thing. I'm trying to do rotate PlanePanel, i'm using "orientation" for this but how to using "orientation" i coulnd't find any sample at PG. my PG link: https://www.babylonjs-playground.com/#HB4C01#48 I have to rotate this panel and also those 3 buttons shuld be work like one button. How can i do this. Masters can show me the way? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2018 Share Posted November 14, 2018 So here is how to use the orientation property: https://www.babylonjs-playground.com/#HB4C01#49 What do you mean by "3 buttons should be work like one button." ? Quote Link to comment Share on other sites More sharing options...
Buzul Posted November 15, 2018 Author Share Posted November 15, 2018 16 hours ago, Deltakosh said: So here is how to use the orientation property: https://www.babylonjs-playground.com/#HB4C01#49 What do you mean by "3 buttons should be work like one button." ? Hi.. Thanks for your reply. I tryed your suggestions but it's not working like i want. I want to rotate control arround Y axis; I'm keep trying for this. I mean about "3 buttons should be work like one button" : I try to make special shape button like a corner. For this case 3 buttons will be enought but those 3 buttons sould be work like 1 button. Example: when i bring cursor to on any button i want to see all buttons (3 buttons) should be colorise. Quote Link to comment Share on other sites More sharing options...
ssaket Posted November 15, 2018 Share Posted November 15, 2018 PlanePanel doesn't have rotation property, hence assigning value to PlanePanel.rotation won't work; you can try TransformNode for this. Regarding combining the 3 buttons, you can refer this - https://www.babylonjs-playground.com/#HB4C01#50 Buzul and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Buzul Posted November 15, 2018 Author Share Posted November 15, 2018 3 hours ago, ssaket said: PlanePanel doesn't have rotation property, hence assigning value to PlanePanel.rotation won't work; you can try TransformNode for this. Regarding combining the 3 buttons, you can refer this - https://www.babylonjs-playground.com/#HB4C01#50 @ssaket thanks for your reply. I'm trying to do this with TransformNode.. When i did i'll let you know.. Thank you... 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.