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 can I create a camera roll during a lean?

Hey guys! I have recently created a lean mechanic for my game, however I cannot seem to get the camera roll working. I simply want the camera to "lean" with the player when the input is pressed. Is there a way to achieve this effect? This is in first person! Thanks a lot!

Product Version: UE 4.13
more ▼

asked Oct 19 '16 at 03:44 AM in Blueprint Scripting

avatar image

170 35 29 54

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

1 answer: sort voted first

You can achieve this easily using the "Spring Arm" no doubt you have one on your character already connected between you and the camera.

Spring Arm Howto

Here is a great start to understanding what you can do with it.

more ▼

answered Oct 19 '16 at 04:02 AM

avatar image

154 3 3 9

avatar image Anaklosmos Oct 19 '16 at 04:38 AM

Would this work on a first person game?

avatar image learningOver Oct 19 '16 at 05:12 AM

If you add a spring arm certainly, you will find that the character arms and stuff will need corresponding animations to have it look right.

For first person, you need not a spring arm you can do the job of one in this case.

You use the rotate vector to rotate around some offset perhaps your origin or your hips. then apply that rotation to your camera.

avatar image Lexyth Oct 19 '16 at 05:41 AM

You could also just rotate your Character, so that if someone looks in a mirror or similiar, he would at least see some kind of real movement, even if it's very basic.

avatar image Anaklosmos Oct 20 '16 at 01:17 AM

Could you possibly send a screenshot of a setup that works? I have been trying methods similar to this, however I never seem to be successful.

(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