How to make a first-person camera like a drone camera, that is, with unlimited rotation.
Hello @jamsyt ,Welcome to forums!
Here are two solutions that might help you.
First, create these 7 Input Actions
all of them should use Axis1D (Float) as the Value Type,
except for the IA_Speed actions, which should be Digital (Bool).
Next, create an Input Mapping Context (IMC)and add all the previously created Input Actions with their respective configuration.
Then, create a Pawn (Blueprint Class) and add:
- a Spring Arm
- a Camera
- a Floating Pawn Movement
- and a variable where you assign your IMC
In the Event Graph of the Pawn, create the code that corresponds to the inputs you set up(you can drag them from the Content Browser into the Event Graph)
Finally, in the Pawn, enable these options and set Auto Possess Player to Player 0
In the Spring Arm, apply the indicated configuration and, in the same panel, disable Do Collision Test.
If you want to create a drone with a visible mesh, here’s a video offering an alternative approach that might be useful to you.
Hope it helps!
Maybe I understand you a bit differently but I imagine that you need to be able to make loops and move the camera side to side without regards to its orientation. I’ve tested similar thing for a space game but keep in mind that such free camera starts to behave weirdly and players quickly loose orientation.
You can try to build your completely free camera with rotators but you’ll quickly fall in a gimbal lock. You need to use quaternions.
First make your camera entirely locked to your controller in your pawn:
Next make this function:
You can use it the same way Aim is used in the First Person Character Example:
I hope I understood you correctly but if not, my apologies.
I think I did everything right, but the camera is not turning the way it should.
Hello again ,I checked it in my project and everything is working correctly, just to double-check , and something I forgot to mention , did you place the Blueprint (the PawnActor) in the level?
Also make sure everything is set up correctly in the IMC(the modifiers with the negate tag)
If not, you could share what you have and we can check if you’re missing something
Could you send me the project? I may have done something wrong.
















