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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Make blueprint camera follow empty object

Hello, I'm experimenting with a top-view perspective on a blank project with no starter content.

I made a character blueprint with a camera and added a cube component in front of it. I want the camera to follow the cube instead of the character itself.

I also want the cube to stop whenever there is a collision, and not clip through it, so that the camera also stops.

I'm not very experienced with blueprints, so I'm sorry if this seems like a noobish request. I would really appreciate it if someone points me to the right direction.

Product Version: UE 4.7
Tags:
more ▼

asked Jun 09 '15 at 02:26 AM in Blueprint Scripting

avatar image

Zefengel
26 3 4 8

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

1 answer: sort voted first

Hey Zefengel,

You can actually hide or delete the character that's within the character blueprint. By doing this, you'll still have the collision capsule and the camera will still be following a 'character'. I tested this out in the Top Down Template. You can always create a new character blueprint as well and set it up with only a collision capsule and attach the camera to it that way too, but it's likely less work for you to just modify what's in the template.

If you have any further questions, please let us know. Have a great day!

more ▼

answered Jun 09 '15 at 08:48 PM

avatar image Zefengel Jun 10 '15 at 03:16 PM

I figured it out myself a while after asking this question, thanks for your reply, though!

I also figured out this was not exactly what I wanted. I need an invisible component in front of my character that my camera will follow so that the camera can always be ahead of the player. In short, this is more or less what I want to do: -Make invisible pawn on component/different blueprint -Control pawn and character at the same time (With same inputs) -Make pawn faster than character -Create collision for pawn -Make pawn ignore character's collision -Make camera follow pawn -Restrict pawn from going too far away from character

This probably involves a lot of blueprint scripting, so all I would ask is a headstart. I would really appreciate your help with this.

(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