x

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"

How Do I Teleport Camera Along With Player Character?

Product Version: UE 4.20
Tags:
more ▼

asked Oct 20 '18 at 11:38 AM in Blueprint Scripting

avatar image

pchanliau
15 2 1 4

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

1 answer: sort voted first

This is most likely caused by the Camera Lag on the springarm the camera is attached to. Disable it before the teleport and enable it after the teleportation (if desired).

Or get rid of the springarm altogether. Also a solution.

more ▼

answered Oct 20 '18 at 01:43 PM

avatar image

Everynone
10.9k 68 22 43

avatar image pchanliau Oct 20 '18 at 02:14 PM

"This is most likely caused by the Camera Lag on the springarm the camera is attached to. Disable it before the teleport and enable it after the teleportation (if desired)."

Nope, it's disabled.

"Or get rid of the springarm altogether. Also a solution."

That's screws up the camera unfortunately.

avatar image Everynone Oct 20 '18 at 02:18 PM

What the animation shows is camera movement interpolation. Perhaps a manual method is implemented there. Is this from a template that comes with the engine?

That's screws up the camera unfortunately.

Not sure why it would, you'd have to add a local offset equal to the springarm's length.


Ah, I saw your third link, yeah it's the interp doing this. You want to get rid of this completely?

avatar image Everynone Oct 20 '18 at 02:31 PM

At the moment the code you posted spawns an additional camera. Perhaps all you need is a camera attached to the player.

If you want to maintain the extra camera setup and without changing the existing mechanics, teleport the camera actor with the player, this way the interpolation will still be there (in case you need it later for something else) but with nothing to do during the teleportation.

avatar image pchanliau Oct 20 '18 at 02:40 PM

I got some advice from somewhere else to just drop this blueprint entirely, since the spring arm already has a built in lag function that I never noticed.

avatar image Everynone Oct 20 '18 at 02:44 PM

Yup, it does.

(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