NasimiAsl Posted December 24, 2017 Share Posted December 24, 2017 i wanna rotate in 2 step step 1 rotate around vec3(3,0,3) step 2 rotate around vec3(0,0,0) http://www.babylonjs-playground.com/#2SN4VZ Quote Link to comment Share on other sites More sharing options...
Arte Posted December 24, 2017 Share Posted December 24, 2017 Hi @NasimiAsl Can you explain a bit more? Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 24, 2017 Author Share Posted December 24, 2017 i try again let me think Quote Link to comment Share on other sites More sharing options...
Arte Posted December 24, 2017 Share Posted December 24, 2017 http://www.babylonjs-playground.com/#2SN4VZ#2 I'm just guessing Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 24, 2017 Author Share Posted December 24, 2017 http://www.babylonjs-playground.com/#2SN4VZ#3 something like that but with rotate function in babylon (i dont know that is possible) as i except the first sample most do that http://www.babylonjs-playground.com/#2SN4VZ#4 more effect //step 1 rotate around 3 , 0 , 3 box.rotate(new BABYLON.Vector3(0.,1.,0.),0.2,BABYLON.Space.WORLD); box.setPivotPoint(new BABYLON.Vector3(3.,0.,3.)); //step 2 rotate around 0 , 0 , 0 box.rotate(new BABYLON.Vector3(0.,1.,0.),0.01,BABYLON.Space.WORLD); box.setPivotPoint(new BABYLON.Vector3(0.,0.,0.)); // but i just see the different result around last pivot point http://www.babylonjs-playground.com/#2SN4VZ Quote Link to comment Share on other sites More sharing options...
Arte Posted December 24, 2017 Share Posted December 24, 2017 I have no clue what you're trying to achieve. I'm not clever enough. Sorry. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 24, 2017 Author Share Posted December 24, 2017 don't say that you r clever and always i cant talk correctly in here Quote Link to comment Share on other sites More sharing options...
Arte Posted December 24, 2017 Share Posted December 24, 2017 with parenting??? http://www.babylonjs-playground.com/#2SN4VZ#5 NasimiAsl 1 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 24, 2017 Author Share Posted December 24, 2017 that is good solution i try find other way if cant i use parent solution Quote Link to comment Share on other sites More sharing options...
Arte Posted December 24, 2017 Share Posted December 24, 2017 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 24, 2017 Author Share Posted December 24, 2017 @Arte is that wrong expectation fro .Rotate method? Quote Link to comment Share on other sites More sharing options...
Arte Posted December 24, 2017 Share Posted December 24, 2017 I don't think so Quote Link to comment Share on other sites More sharing options...
MarianG Posted December 24, 2017 Share Posted December 24, 2017 Hello. I think exactly for this was created TransformNode. https://www.babylonjs-playground.com/#CFMBHZ#10 http://www.babylonjs-playground.com/#2SN4VZ#6 NasimiAsl and Arte 2 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 24, 2017 Author Share Posted December 24, 2017 thanks firend i have a lot of offer now Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 24, 2017 Author Share Posted December 24, 2017 use rotate for make repeate result https://goo.gl/93ic5h thanks all @Arte @MarianG GameMonetize, Arte and MarianG 3 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.