# rotate stuff setPivotPoint just keep last point

## Recommended Posts

i wanna rotate in 2 step

step 1 rotate  around vec3(3,0,3)

step 2 rotate  around vec3(0,0,0)

##### Share on other sites

Can you explain a bit more?

##### Share on other sites

i try again let me think

##### Share on other sites

I'm just guessing

##### Share on other sites

something like that  but with  rotate function in babylon  (i dont know that is possible)

as i except the first sample most do that

//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
##### Share on other sites

I have no clue what you're trying to achieve.  I'm not clever enough. Sorry.

##### Share on other sites

don't say that you r clever and always i cant talk correctly in here

##### Share on other sites

with parenting???

##### Share on other sites

that is good solution  i try find other way if cant i use parent solution

##### Share on other sites

@Arte is that wrong expectation fro .Rotate method?

I don't think so

##### Share on other sites

Hello. I think exactly for this was created TransformNode.

##### Share on other sites

thanks firend i have a lot of offer now

## 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.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.