Rotate yaw actor according to a base rotator
I have an object which follows my cursor for placement purpose. This object can be placed on a sphere! It follows the sphere too, according to the center. But, when I click, I would like to rotate my object before placement (a yaw local rotation). I don't understand how to do that. I tried a lot of things! I can get the mouse location to create an angle calculation, I can use "find look at" to get a directional rotator to rotate my object...etc. But I don't get anything working with the "base" rotation (according to the sphere)...
The node "set local rotation" would be great x)
Here is a sketch to understand what I'm looking for:
Thank you very much for help! Kiss <3
asked Oct 28 '17 at 05:56 PM in Blueprint Scripting
Have you tried Set Relative Rotation and Location or Add Relative Rotation or Add Local Rotation ?
answered Oct 29 '17 at 03:53 AM
I skimmed the above without reading it thoroughly; I looked at the sketch, though.
If this is something that you're trying to achieve:
Then consider adapting the following to your needs:
In the level blueprint:
In the cube:
answered Nov 02 '17 at 02:54 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here