I have a cube that I want to rotate using the cursor keys. It’s working, kinda, but I want it to add to the rotation every time I click the cursor key. Now when I click it just reverts to the previous position and rotates again.
Instead Set Relative Rotation
use Add Relative Rotation
and tell how it went
Hi,
Hope you’re doing well.
There is an easy fix, simple get your start rotation dynamicly, instead of use it as zero always.
I think this simple change my solve your issue.
Hope that helps - take care!
Yeah! That worked! My issue now is that it doesn’t actually rotate 90 degrees. I added a print statement and got this:
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=0.000000 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-7.770048 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-23.802290 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-23.802290 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-29.447342 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-29.447342 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-35.194134 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-35.194134 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-40.684720 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-40.684720 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-46.818856 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-61.589108 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-80.665053 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-100.502881 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-117.887903 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-128.827121 R=0.000000
LogBlueprintUserMessages: [BP_CubeHalf_C_1] P=0.000000 Y=-130.684723 R=0.000000
So it looks like it’s starting to rotate but as it’s turning it gets another request and another one again and again, even if I presses the cursor button only once. But maybe it caught it more than once.