Simple Camera Blueprint rotation around vehicle

hi Steel… I’ve done months of work with camera positions/rotations… honestly, I’d say that unless you are doing something quite exotic –with the right settings– a spring arm component with Use Pawn Control Rotation is the easiest, best looking and most performance-efficient way to go (if it suits your needs turn off Inherit Pitch / Yaw / Roll, and in the camera component turn off Use Control Rotation).

I’m guessing that you are steering the vehicle with keyboard inputs, right? Remember to go to your Pawn/Character base class and turn off "Use Controller Rotation Pitch / Yaw / Roll "

Keep posting your progress here and I think we can get you fixed up quickly on this one…

Hi!

I have a truck and want my camera to be able to rotate around the truck with the input from the mouse. So i can study all angels while driving, like in FarmingSimulator. Does some one have a blueprint (easy one :slight_smile:

I am a newbie so real easy plz.

But not just “Use Pawn Controll Rotation” for the springarm

Regards Steel

Hi aNorthStar!

Yes I´m using WASD for steering. So i dont need to use EventGraph to get a camera rotation around my truck? if so can you be more specific, I need instructions from A to B. I´m so new at this.

Attached a picture showing a red circle where my camera should rotate

I think i have the springarm under control. How do turn the camera around?

Just to clarify my goal this camera controll is what i´m aiming for

it’s totally fine, we are all beginners at some stage… yes, a spring arm component attached to your pawn/character/vehicle will be ideal for your purposes…

UE4 has already set up most of this for you…

First of all, set up your Mouse Yaw Input… using the Project Settings > Input > Mouse X
Second, on your Base pawn/character/vehicle… disable Use Controller Rotation Pitch / Yaw / Roll

On your Spring Arm Component… enable Use Pawn Control Rotation… set up Linear and Rotation Lag as it pleases you (looks nice)… play about with Inherit Pitch / Yaw / Roll according to your needs

See how this works for you… any issues, come right back, i’m online for several hours today

thanks!! i will look at this

yes… what you are aiming for is quite normal… not too exotic or hard to do :slight_smile:

Ok… so wherever you have your player controls (usually in the Pawn/Character/Vehicle BP or your Player Controller BP)… Get the name of your Mouse X input (that you set up in your Project Settings) and using that as an event and an axis value, plug it into Add Controller Yaw Input

This video will likely help… BP 3rd Person Game: Character Keyboard & Mouse Controls | 13 | v4.8 Tutorial Series | Unreal Engine - YouTube

Your settings will be slightly different (as I mentioned earlier)… but I think you’ll get the idea

your welcome Steel… nice! please just upvote my answer to show that this one is solved :slight_smile:

to fine-tune the feel of the movement, you can modify things (on the Spring Arm) like:

Spring Arm

  • Target Arm Length (how far away the camera is from the center)
  • Camera Lag and Camera Rotation Lag (how smooth the camera movement is)
  • Socket Offset and Target Offset (moving and rotating the camera about even more, in addition to the Spring Arm movements)

Player Controller

  • Input Yaw Scale (how quickly the camera rotates for a given mouse input)

It turns!! :slight_smile: thanks a lot!. Much appreciated. Just need some tweaking.

Great

/Steel