How to get the Rotator of an Actor/SceneComponent?
How would I go about either getting a pointer/reference to the Rotator of an Actor/SceneComponent OR Some way to change only a single Value(pitch/yaw/roll) of a Rotator of a scenecomponent/actor, without touching the others?
You're not supposed to change specific component directly through indirection. Here's what you're supposed to do:
Same for Rotators
You can keep references to actors (preferably through a uproperty variable), and then Get/Set locations/rotations as needed, but not references to single parameters of location or rotation. 'Yaw', 'Pitch' and 'Roll' are not how those values are stored internally for an FRotator. Eulers are used because it's understandable for users, as opposed to quaternion components.
answered Jul 12 '16 at 07:54 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here