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"

Smooth Pawn Rotation Movement

Help me please! I'm very new to Unreal and am jumping in the deep end by building my first game from scratch. Here's the boggle;

I've spent a day and a half trying to figure out how to turn my top-down pawn smoothly pon it's axis.

I figure I have three roads open to me;

  1. Sequencer-Matinee keys - ...but I can't record rotation without the location info. So the pawn leaps back to the spawn point before animating.

  2. Timeline Node - ...but I can't align my curve time against the actual gameplay time. So the rotation amount is fiddly guesswork.

  3. RINTERP Node - ...but I can't figure out how to enclose the rotation in a loop until I reach my desired angle. So it either snaps the pawn around, or again becomes fiddly guesswork

My gut tells me that option 1 is the best solution for me because the ideal scenario is to have my pawn do a sexy loopdy-spin when it's direction is reversed, and not just rotate. Now I'm starting to go bald and my nose hurts from smashing my face on the desk.

I have read every relevant post I can find in the hub and am still no closer to finding a functioning approach. Any advice or examples would seriously rock my world.

Product Version: UE 4.17
Tags:
more ▼

asked Oct 11 '17 at 07:52 AM in Using UE4

avatar image

Peeeeeet
58 3 4 9

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I set some breakpoints and simplified until I hit my desired rotations. Finally solved it.

I used the Timeline. The problem wasn't with time at all, but with the rotation values. I think the dread RINTERP was getting me all turned around (mandatory pun).

Also, I had forgot to account for the fact that my Actors control axis is already rotated by default to give a side scrolling experience. So I needed to go with (-90°,90°) to face left and right.

For any other newbs struggling with Timeline node and pawn rotation, here is the graph from inside my pawns blueprint itself where I keep all my movement stuff;

alt text

rot-solution.png (254.6 kB)
more ▼

answered Oct 11 '17 at 10:47 AM

avatar image

Peeeeeet
58 3 4 9

(comments are locked)
10|2000 characters needed characters left
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