Jump to content

Rotate a Camera


damian+merfoo=♥
 Share

Recommended Posts

Using an ArcRotateCamera you can set the rotation on creation of the camera, is there a way to do something like, camera.rotation.x and camera.rotation.y to change the rotation of a camera already in the world?  I'm assuming that it would be better to not just make a gazillion cameras every time that I want to manually change the rotation though as far as I can see the only way to set a camera is on creation!  When I try my method above it just says "Cannot set property 'x' of undefined".

Link to comment
Share on other sites

I would love to have position, rotation, and scaling in a new kind of node (transform). A transform could be used to be the parent of meshes, lights and cameras. Thus, it will be simple to achieve what you want. Like my post here http://www.html5gamedevs.com/topic/2796-discussion-about-nodes-meshes-instances/?p=18165 and maybe someday we'll have it ;)

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