Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Pawn Lag behind Camera instead of Camera Lag

I know there is a camera lag feature in UE4 where the camera lags behind the pawn/character. However, I instead need the camera to lead and the pawn/character to lag behind.

In other words, I have a flying pawn and the flight would feel more natural if the ship's movement followed the camera movement with a smoothed movement, similar to the Halo: Reach Sabre space ship. https://youtu.be/YJYTt8ZwZPo?t=47s

Any ideas on how to do this?

Product Version: UE 4.15
more ▼

asked May 04 '17 at 07:04 PM in Blueprint Scripting

avatar image

20 5 9 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I figured it out. Simply change the camera to the root object. Add a child spring arm, and put a child static mesh on the spring arm. check the camera lag option on the spring arm. Make sure to turn off "Do Collision Test" or your pawn will jump around when getting near other objects. Works like a charm!

alt text

However, now the collision on the static mesh doesn't work. Also, I need to have the camera lag more on left and right movement and less on up and down movement. Any ideas on how to do this? will I need to create my own lag system?

Edit: So I created my own camera lag system that works quite well, and I have different lag options for forward back, left right, and up down based on this: https://forums.unrealengine.com/showthread.php?56329-Feature-Request-Axis-specific-camera-lag-max-distance.

I'm still having issues with collision. So I'll probably need to post a new question.

flying pawn.jpg (11.0 kB)
more ▼

answered May 04 '17 at 07:17 PM

avatar image

20 5 9 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question