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"

Lock camera Z axis of third person camera

Could you teach me how to lock the third person camera's Z axis when the player jump? But I need to keep X and Y axis as usual following the player. I thank you so much. (I was very tired to fix this issue).

Product Version: UE 4.11
more ▼

asked Sep 28 '16 at 06:26 PM in Using UE4

avatar image

Iwill Wong
6 1 2 3

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

1 answer: sort voted first

Hi Wong,

I was able to achieve this effect in the third person BP content example. Open the ThirdPersonCharacterBP and add what is in the screenshot to your character. alt text The timeline is so that it lerps 0 to 1 over a second and is a smooth camera transition. I collapsed a couple nodes into the node named "SetCameraCar" here is what that looks like. alt text

Let me know if that helps,

Ed Burgess

lockz jump.jpg (189.9 kB)
collapsed.jpg (101.8 kB)
more ▼

answered Sep 28 '16 at 10:01 PM

avatar image Iwill Wong Oct 01 '16 at 07:40 PM

Thanks a lot. I have tried following your idea, it very close what I want, but the player camera goes down a bit once the player land. I don't know why.

avatar image Ed Burgess ♦♦ STAFF Oct 03 '16 at 01:07 PM

I would need to see your event graph to determine what is going on. It sounds like you aren't lerping correctly from the camera's current relative position on landing to the camera's relative position that is stored when starting the jump.

Make sure that the values are set up correctly like in the graph and that the float output for the timeline is going from a value of 0 to 1 over 1 second. Also make sure that you are using the correct location nodes where I have them in the graph. Notice that I use both set world location and set relative location.

(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