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"

Actor rotates slightly while moving left or right (bug)

Version: 4.18.3
-Blank project but using 2D paper character

I can move to the left or right perfectly fine but my player rotates slightly to the direction he is moving in (he rotates ca 3 degrees). I've attached the camera to my player (the camera is not inside the actor blueprint but in the actual world) and this then creates a lot of shaking to the camera when I move. Here is a video:

Product Version: UE 4.18
Tags:
more ▼

asked Mar 13 '18 at 08:57 PM in Blueprint Scripting

avatar image

Jonas0403
1 1 1

avatar image Anhhkk Mar 14 '18 at 01:18 AM

Hi,

Can you share more info about how are you attaching your camera? And how are you updating the camera? I just create the 2D side scroller example, and it works as it should be, I modified it, adding a Camera Artor and forcing that actor to follow my character and it work ok too.

Maybe try to not attach your camera directly to your character, as the character rotates 180 when it changes direction it could mess with your camera transform.

avatar image Jonas0403 Mar 14 '18 at 02:25 PM

Hi, here is how I added my camera: youtube-video

And what else could I attach the camera to other than directly to the character? Thanks

avatar image Anhhkk Mar 15 '18 at 02:41 AM

It is weird, I just duplicate your copy in my project and the camera flip 180 when the character change its direction. Maybe in your code, you aren't rotating your character and attaching the camera works as you expected.

Instead of attaching you can:

  1. Use a SpringArmComponent with a CameraComponent and in Camera Settings disable Inherit Yaw

  2. Create a follow code in your camera blueprint CamFollow

camfollow.png (190.1 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Managed to "fix" it by just creating a new project and copying almost all the blueprints over to that project. Still don't know what the problem was though..

more ▼

answered Mar 14 '18 at 07:37 PM

avatar image

Jonas0403
1 1 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