RInterp issue

Hello community! I’ve come across a problem I can’t make sense of.

Here’s a picture of the code I am using:

This is for rating a ship in space for a small game I am working on. This works great, and here are the output logs:


LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=0.000000 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=1.333447 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=2.000061 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=2.666730 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=3.333399 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=4.000233 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=4.666875 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=6.052537 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=6.359700 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=0.000000 Y=7.026429 R=0.000000

As you can see the Yaw value smoothly increases, just like it should.

However I want the Pitch value to be a constant value of 90.
So I changed it like this

I changed the target’s Pitch to 90.

And the outcome is this:


LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=0.000000 R=0.000000
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=0.319912 R=-0.895172
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=0.063354 R=-1.151733
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=1.061397 R=-0.153687
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=179.580704 R=178.365616
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=0.580744 R=-0.634338
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=179.333282 R=178.118179
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=178.633682 R=177.418579
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=0.410886 R=-0.804230
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=-0.210358 R=-1.425446
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=178.885635 R=177.670547
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=0.198518 R=-1.016571
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=0.715268 R=-0.499817
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=-0.149109 R=-1.364197
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=179.205185 R=177.990097
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=1.153647 R=-0.061432
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=-88.419128 R=-89.744232
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=36.505108 R=35.180012
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=-90.666687 R=-89.205627
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=35.778683 R=35.906406
LogBlueprintUserMessages: [Ship_Basic_C_0] P=90.000000 Y=-90.666687 R=-89.205627

As you can see, while the pitch is steady 90 as I want to be, the Yaw value is completely messed up! I am trying to understand if there is a logical explanation behind this or if it’s an engine bug. Any input would be great.

@franktech Thank you so much! I am not sure I understood everything, but I got it working haha. I ended up setting actor rotation’s pitch 90, so I left the relative to 0 as it was and with some tweaking it works as it should now, thank you very much :slight_smile: