In blueprint, how do I rotate a static mesh to multiple set orientations?

I’m reeeeallly sorry. I think I celebrated prematurely. :see_no_evil:

It looks like the speed still isn’t constant.

No matter how much the wheel turns, it always takes 3 seconds to complete the animation. Whether it’s turning 45degree, 90degree, 180degrees, etc.

I started with 1 and 0.25 for my Out Range A & B but I tried adjusting those and the results are the same as above with a different length of time.

I even checked the settings in Timeline. I have my value line in Timeline set to Linear, so there’s no ease in and out. It makes it easier to see how the speeds differ.

I really can’t see what I’m doing wrong.

You’re using ABS:

image

You can’t have negative values in the MapRange node. Try it with 180, see what happens.

Yeah I had tried both 180 and -180 and I get the same results.

image

Can you set this to:

  • 0
  • 180
  • 10
  • 2.5

Looks like you swapped the last 2 around in the wrong order.

Yeah. I was just trying different numbers combinations. I still get the same results. I had the out range at 10, 2.5 before. As well as 1, 0.25. No matter what I try one of two things happens:

  1. the amount of time it takes to rotate between any two points is always the same amount of time. IE: it take 3 secs to go from 0-45degrees and it takes 3 secs to go from 0-180 degrees.

  2. the amount of time it takes to rotate between any two points is inconsistent. IE: it takes 3 secs to go from 0-45 degrees, while it takes 4 sec to go from 0-90 degrees.

Maybe I’m missing something somewhere else? Do you have any values typed in any of the variables? In Current or Target?

It’s probably not set up correctly then, I’ll see if can add some extra math. Tomorrow hopefully.

1 Like