Jump to content

rotate stuff setPivotPoint just keep last point


NasimiAsl
 Share

Recommended Posts

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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...