fateriddle 3 Posted November 2, 2018 Report 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 post Share on other sites
droggam 1 Posted November 2, 2018 Report 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 post Share on other sites
fateriddle 3 Posted November 2, 2018 Author Report Share Posted November 2, 2018 How do you find where the camera is pointing now? @droggam Quote Link to post Share on other sites
droggam 1 Posted November 2, 2018 Report 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 post Share on other sites
dreinzy 1 Posted November 2, 2018 Report Share Posted November 2, 2018 Maybe what you want is Camera.getForwardRay().direction; Quote Link to post Share on other sites
Deltakosh 4315 Posted November 2, 2018 Report 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 post Share on other sites
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.