Sign in to follow this  
fateriddle

cameraRotation, cameraDirection & camera.getTarget(), what is the difference?

Recommended Posts

I'm pretty confused right now. 

1. Is camera.cameraDirection a vector of where camera is pointing?

2. Then setTarget/getTarget is doing the same thing? to point the camera to the direction of the target?

3. And to rotate a camera is also trying to point a camera to some direction, no?

So what is the difference?

btw, I'm trying to add customized input to camera.inputs to control which direction it is pointing for a shooter game.

 

Share this post


Link to post
Share on other sites

1. Is camera.cameraDirection a vector of where camera is pointing?Nope it is the direction to where the camera goes

2. Then setTarget/getTarget is doing the same thing? to point the camera to the direction of the target? setTarget will update cameraRotation

3. And to rotate a camera is also trying to point a camera to some direction, no? yes this is correct. You can either set a target or change camera rotation

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.