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"

[Help]Trouble with player camera

Hello !

I am working on a player camera quite simple (I think ?). Here's the idea:

1.The player look in front of him, camera is just behind (pictures of camera settings below the explications)

2.The player look a little bit up so the camera follow

3.The player look totally up, the camera is approximately under the arm

(Blue thing is the camera, red line is spring arm and yellow arrow is the way the player looking)

alt text

The best exemple I can give you is the Fortnite camera type (And maybe the camera type of Gears of War but I'm not sure). Here's what I have with my current camera (which is not what I want)

alt text

1.Camera looking front

2.Camera looking down

3.Camera looking up

The problem is that when we looking down, the camera go forward the player, and when we look up the camera go above the player

alt text

Here is the settings. I don't know what to say more. If you have any question feel free to ask

Product Version: UE 4.20
Tags:
ue4help.png (19.3 kB)
ue4help2.png (1.3 MB)
ue4help3.png (779.4 kB)
more ▼

asked Nov 28 '18 at 06:04 AM in C++ Programming

avatar image

StarLordTMTC
1

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

3 answers: sort voted first

Camera is not exacly on springArm but has some offset. In camera component set Location to 0,0,0 and instead of changing location of camera to change view position, change location of SpringArm because camera is always following springarm.

more ▼

answered Nov 28 '18 at 06:15 AM

avatar image

jozi341
102 6 9 13

avatar image jozi341 Nov 28 '18 at 06:37 AM

Also if you want to set camera closer to or farther from character, instead of moving Camera or SpringArm, change "Target arm length" in SpringArm

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

Is that this that I have to set instead of the location of the camera ?

alt text

When I look up/down the camera still does this (1) and when I look around (2) the camera change and go away from the player and turn around him (I try with and without Pawn rotation on the spring arm). I don't know where the problem can be

alt text

ue4help5.png (666.2 kB)
ue4help6.png (904.1 kB)
more ▼

answered Nov 28 '18 at 07:11 AM

avatar image

StarLordTMTC
1

avatar image jozi341 Nov 28 '18 at 07:27 AM

No, you need to change values in Transform panel. To increase height of camera, increase the Z valuealt text

springarm.jpg (167.4 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Nice, it works just perfect, thank you so much for the help !

more ▼

answered Nov 28 '18 at 07:38 AM

avatar image

StarLordTMTC
1

(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