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"

What in the CharacterMovement Component causes the updated Component to move right side up.

I've made a Proof of Concept using the Floating Movement Component and have extended the Character Movement Component to the point that my Proof of Concept was at. The only issue I'm currently having is when I change the root component and then use ->SetUpdatedComponent the new collision capsule (and root) turns right side up rather than keeping it's rotation.

I'd presume this is something done specifically in the CharacterMovement Component as it's not present prior to using that component. I'm quite aware of all the issues with the collision capsule not being right side up and have gone through most if not all the functions to override to account for the change. But I'm still getting this problem.

Can anyone point me in the right direction of where this is happening.

Note: When I don't use ->SetUpdatedComponent the character will spin around rapidly. When used the character goes on it's back as the capsule being set as root has a default -90 yaw.

Product Version: UE 4.13
Tags:
more ▼

asked Oct 22 '16 at 09:49 AM in C++ Programming

avatar image

ShinraiBFD
6 3 2

avatar image ShinraiBFD Oct 23 '16 at 09:55 AM

Disregard this it appears I was setting the root component in my implementation but not in my POC. Thus setting to root was causing the upright position. However now I'm presented with a new issue. When I make the root a default scene root and use ->SetUpdatedComponent I'm teleported to 0,0,0 of the map and can't do anything. Seems there may be something in the character movement checking for the root component rather than the capsule it already defines?

avatar image ShinraiBFD Oct 25 '16 at 10:17 AM

Seems for whatever reason I had to explicitly set the created Scene component to 0,0,0 for it to work correctly. I've nearly got this complete. However when setting the updated component something appears to be placing the component at a rotation of 0,0,0 every tick. This is causing the character to teleport back and forth from 0,0,0 and 0,-90,0 rotation.

Anyone have any idea what in the Character Movement Component is doing this? As it's not present when using the floating pawn movement component.

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

0 answers: sort voted first
Be the first one to answer this question
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