Orbit the camera around a vector
Hi everyone, I currently have a camera that I want to be able to rotate around a point when I swipe left or right in the touch screen and for that I already have a InputManager with the possible input methods bound.
I have a touchEvent and swipe event bound by the method
I want to be able to move the camera right or left depending on the swipe direction while being able to keep looking at FVector(0, 0, 0) which is the point of origin of the world.
The InputManager already has a reference to the camera that is on the screen, so is there anyway to make it rotate or obit around that point and keep looking at it even though it is moving?
asked Jan 12 '16 at 01:27 PM in C++ Programming
Hi Matthew thank you for the info but at the end it wasn't a problem with degrees or radians, it was in the way I formatted the data, since i used this FRotator(0.0f, -45.0f, -360.0f) instead of this FRotator(-45.0f, -360.0f, 0.0f), so the data was being assigned to the camera wrongly, but I still converted everything into radians and then back to degrees so there won't be any more problems with that. thank you.
answered Jan 16 '16 at 09:07 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here