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 to get player Camera to track separate actor?

Hi guys, I am creating a vehicle based game, similar to rocket league. I am currently stuck with trying to create the "Ball Cam" effect which involves a camera that tracks the ball from the players perspective. Ideally I wish to have it stay in behind the car whilst rotating to follow the ball at all times.

Product Version: UE 4.21
Tags:
more ▼

asked Apr 26 '19 at 07:40 PM in Using UE4

avatar image

Chip_14
10 1 2

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

2 answers: sort voted first

right click on your player pawn and write: get player controller, drag off that, set view target with blend, you will need the reference of the ball to plug into that...

more ▼

answered Apr 27 '19 at 04:46 AM

avatar image

Imagine-Games
224 5 10 15

avatar image Chip_14 Apr 27 '19 at 02:46 PM

Thanks for the reply!

unfortunately it doesn't seem to work, the image below is the default camera: alt text

This next image is what happens when the key is activated to swap to the ball camera: alt text

here are the images of the blueprints: alt text

alt text

This last image is attached to an event tick node, would this be the correct node for it to be attached to?

thanks for the help!

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

Use set active instead of activate and deactivate... And no dont use event tick.. after you set the bool on pressed C you can call that function.. no need for tick

more ▼

answered Apr 27 '19 at 06:30 PM

avatar image

Imagine-Games
224 5 10 15

(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