I added 2 cubes and 2 box collisions inside a pb actor. When I enter the first box and press the E key, the first cube spins. The same process applies to the second cube and the second box. The rotation value of the cubes is 30. So I press the E key 3 times and I get 90. After I rotate the first cube 90 degrees and the second cube 180 degrees, I want both cubes to change color. It is easy to rotate the cubes and change their color. But I don’t know how to calculate 90 and 180 degree rotations of cubes. I tried several times using integer and float but without success. I would be very grateful if you could help. Thanks in advance. ![]()
Thank you very much for your reply. However, even though I did exactly the same, I couldn’t get any results. My cubes are not spinning. By the way, I’m using the Third person character. Do I need to do anything extra for this?
It doesn’t matter which player you use.
Can you show your code?
Hold up, first of all, are you actually getting any input?
Try a print string here

No, the print string is not displayed.
I am really sorry! I forgot to do this. Yes it works fine now. I’ve been struggling for a really long time. Thank you for your help. It really made me very happy. Thank you so much.
Do I need to do anything to end this conversation?
You can mark the question as answered ![]()
Do I need to tick a box to do what you say, or do I have to edit the title and type it? I couldn’t figure out how to do it I’m so stupid ![]()
Usually there’s a tick box on the post you want to mark, but you may not have asked this as a question. In which case, don’t worry ![]()
Yeah, I guess I didn’t post that as a question. Because I don’t see a checkbox. I’m still new here. Thank you very much again. I wish you a good day and good work. See you later. ![]()
Sorry to bother you again, but I have a small problem. When I drag and drop the bp that I managed to do thanks to you to the example level, the other bp I made before does not work. However, no error appears on the screen. Do you have an opinion on this?
Wow! It’s easy. I promise I won’t bother you again.
![]()
I’m really so sorry. I promised not to bother you again, but once again I need your help. I tried running the process we did on the Y axis instead of Z to try something different. However, this operation only works on the Z axis. Do you have an opinion on this? ![]()
Can you show your code?
I did not make any changes to the codes. I just typed 30 on the Y axis instead of the Z axis. But it doesn’t work when you do it like that. It turns but does not reach the result.
Right, it’s because rotation is not that simple. If you look at the rotation of the cubes in the outliner, you’ll see that the Z and X values change when you change the Y…
I tried to create a variable and do a current rotation, but no result. So, any ideas on how to fix this problem?







