Orbiting camera controls problem - Third person shooter
I am teying to basically make a custom third peson shooter camera.
I have an invisible cube that is being teleported to the puppets position. Then a camera that if offset behind the puppet to follow him around. I am tryingd to give it controls like a third person by rotating the cube around making the camera orbit around the puppet. I am able to rotate the camera up/down or left/right using rotators but only separetly. If one of the rotating axis moves it disorients the other one, making the camara rotate in undesired directions. Is there any way to fix this problem? Or a calculation to the the orbiting effect?
I tried using rotators to make the camera rotate left/right, and key frames to move the camera gizmo up/down, I got the desired effect, however the fact that the actual cube doesnt rotate up/down messes up my plans for aiming mechanics and the information I could get from that cube . Like where the camera is pointing at, aiming crosshair, player look at direction, laser sensor direction, camera clipping, and whatever else I havent thought of. Any help would be appreciated
Also if you make an object invisible I dont knkw how to find it again or select it cuz it pretty much dissapears. :(
-
I don't know how to make the camera do that, though I have seen a couple published characters that seemed to have that functionality. Maybe do some searching? Unless someone camera savvy helps out.
About invisible objects. In the Hide/Show section of the menu (icon is an eyeball) there is a toggle called "preview invisibility" Turn it off to see all invisible objects. -
Thanks, I don’t know how I missed that
-
Alright, I did it. I’ll just explain what I did in case somebody else is stuck too.
I placed 2 invisible cubes together, one smaller than the other, then I made the smaller cube a child of the bigger cube. Then I placed a teleporter on the parent cube so that both cubes follow the puppet. Then with the Rotator I made the parent cube rotate left and right. So when the parent cube rotates l, the child cube will rotate too. Lastly, I placed the camera on the child cube and used key frames to rotate the child cube up and down, and that will get you the Orbiting camera. Its a little tricky to get it all working correctly but thats the basic Idea. Hope it makes sence ?
Please sign in to leave a comment.