baobao4435
(baobao4435)
January 26, 2024, 8:36pm
3
Thank you for take your time to help me.
I will try your solution.
And I researched some other topics.
And they described very well.
I think it’s my lack of base knowledge causing the issue.
local space rotations are for components that are attached to other components. if you want to rotate an actor around its up vector, you can use RotatorFromAxisAndAngle. and if you want to set the rotation, instead of adding to it, just skip the getActorRotation/CombineRotators part.
[135228-rotatorfromaxisandangle.png]
Have this BP with a cylinder component, which has relative rotation X = 20
So the cylinder is rotated 20 degrees around X (red) axis from the parent reference frame.
[image]
The reference frame (gizmo) shown above is the relative (parent’s) reference frame.
If I add a relative Z rotation to cylinder, it’s gonna rotate around that blue axis :
[image]
[aaaaaa]
Now this is the cylinder’s local reference frame :
[image]
If I add the same Z rotation as a local rotation, it’s gonna rotate a…