How to do local rotation?

I recently started Unreal Engine, and from the start i seem to be having HUGE problems with local rotation. For 1 i don’t know how to locally rotate the root component (rotate it for a certain number of degrees in it’s local coordinate system). 2 how do i get forward/up/right vectors of the rotation relative to the root component (say Root component has R,P,Y rotation i want to get the forward vector of the actor that which has “Add Actor Local rotation” for say 30 degrees).

P.S. i have been doing everything in the blueprints.

Root is the root of the local coordination system, meaning that everything is rotated/placed in relation to it. In the bluerints it doesn’t say root but actor. So any transformation applied to the actor is applied to the root then passed on to the other components.

but when i do set rotation, and add local rotation the root is unchanged, and when i want to know the rotation of the actor it returns the root’s rotation.

Yeap, the question was, how to rotate something in local coordinate system (also called - relatively).

I know only one method - vector math.

1 Like

it’s able silly to be able to add local rotation relative to the root component but, not be able to rotate the root locally. if there was only a way to retrieve the rotation of the actor relative to the root component (in world coordinates) not just of the root component.

Hope this helps…link text

For anyone just wanting to add local rotation to a world rot value, you can go;

World Rotation Value → Invert Rot → Combine Rotator (Adding local rot offset) → Invert Rot Again = Adjusted World Rot Value.

Very useful for calculating the adjusted world rot value of a spawned actor before actually spawning it, so you don’t need to add Actor offset later.

Thank you! just what I was looking for :slight_smile:

thank you so much! was having an hard time setting the physics handle target rotation correctly.

wow thanks! This solved my riddles!

This is a brilliant tip, thank you so much @bzxo

Thanks searched for this longer than I want to admit.