fateriddle Posted November 2, 2018 Share Posted November 2, 2018 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. Quote Link to comment Share on other sites More sharing options...
droggam Posted November 2, 2018 Share Posted November 2, 2018 i dont understand... target is like focus a specific mesh.. rotation is just rotating THE camera? how is that THE same? Quote Link to comment Share on other sites More sharing options...
fateriddle Posted November 2, 2018 Author Share Posted November 2, 2018 How do you find where the camera is pointing now? @droggam Quote Link to comment Share on other sites More sharing options...
droggam Posted November 2, 2018 Share Posted November 2, 2018 I cant check right now in pc but Wat ur asking is really basics... Think of cam as another mesh u can rotate it position and manage its direction in animations examples? Quote Link to comment Share on other sites More sharing options...
dreinzy Posted November 2, 2018 Share Posted November 2, 2018 Maybe what you want is Camera.getForwardRay().direction; Quote Link to comment Share on other sites More sharing options...
Guest Posted November 2, 2018 Share Posted November 2, 2018 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.