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"

Character Tilt - Yawing Problem


I have been working on tilting characters to the surface orientation (using this as the basis for the blueprint). After a bit of tweaking I have the following blueprint ...

alt text

When moving the character onto a slope this is working brilliantly as shown in the following image ...

alt text

However if I release the controller and stop moving then there is a small yaw constantly applied until the character rotates until they are aligned with the slop as follows ...

alt text

At that point rotation stops.

Does anyone have any ideas where I am going wrong with the blueprint or have any advice on filtering our this additional rotation?

Many thanks.

Product Version: UE 4.20
tilt-blueprint.jpg (445.8 kB)
tilt-initial.jpg (82.2 kB)
tilt-final.jpg (90.1 kB)
more ▼

asked Nov 01 '18 at 02:59 PM in Blueprint Scripting

avatar image

6 1 2 3

avatar image mightyenigma Nov 01 '18 at 04:36 PM

I am not sure what is wrong but maybe it would help to tell it not to set actor rotation unless the difference between current rotation and the one indicated by your angle calculations is bigger than 2 degrees.

I have a similar system for my game but mine does an interpolation toward the calculated angle instead of changing instantly so maybe that has something to do with it.

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

1 answer: sort voted first

Thanks for your advice ... it got me headed in the right direction.

I started thinking about only changing the yaw rotation if the delta was large enough ... and then realised that I could actually just ignore the yaw change altogether as I'm only trying to change the pitch and roll. With the following addition to the end of the blueprint everything is working exactly how I needed it to work.

alt text

tilt-bp-fix.jpg (250.7 kB)
more ▼

answered Nov 01 '18 at 08:55 PM

avatar image

6 1 2 3

avatar image mightyenigma Nov 01 '18 at 08:57 PM

Oh that is another thing about mine - i broke out and selected the axes that way too! Glad you found a solution :)

(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