Hello mate! I am currently trying to move the cam back. At the moment, the camera is located at a spatial’s location and is rotated when the spatial rotates. I am trying to move it a bit farther back. so as to see the entire spatial instead of being inside of it. Here is a diagram of what I wish to do:
I am sure this is easier than I think, but I am still quite confused on what to do. Thanks for your help and have a great day!
Not tested or sure this is the best way, but
Vector3f moveBackBy = new Vector3f(flyCam.cam.getDirection().mult(10f));
flyCam.cam.setLocation(flyCam.cam.getLocation().subtract(moveBackBy));
Something like that? Assuming you’re using flyCam, or whatever camera. And obvs change 10 to whatever value you want
(hope it works or helps?)
1 Like
Cheers mate, that worked like a charm! Thanks for your help!