Jump to content

Rotate mesh and not camera


Richard C
 Share

Recommended Posts

Could someone give me a pointer as to how rotate a mesh but not the camera, I'm sure this must be straightforward but I can't seem to find easy to understand docs or playground example.

Additionally, how do you show a console.log in the playground - it doesn't seem to appear in the logs window..

Thanks as ever

Richard C

Update: It is blindingly obvious once the light eventually comes on that to give control of movement to an object you need to detach control of the canvas from the camera - camera.detachControl(canvas);

Once you have completed the object movement give control of the canvas back to the camera - camera.attachControl(canvas);

Dah-Ooh

Edited by Richard C
Update
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...