Rotating an object relative to an axis.
Sorry to bother you guys with this, but my brain is fried and I could use some help!
I'm working on a project that has a clockface that is angled up at a 45 degree angle and facing about 15 degrees to the left (if facing the object from 0,0,0).
The watch has hands that need to rotate relative to time and I'd prefer to have all hands moving as a real watch would (minute, hour hand slightly increment yaw rotation until the time is reached).
Normally I don't think this would be an issue (I already have the logic to rotate the hands in a normal scenario working), but the the watch was transformed in the 3D modelling tool and not exported at transform 0,0,0, so trying to rotate the Y axis makes X and Z go all wonky.
I was wondering if there was some UE4 magic (or just some basic trig) that I could use to add the proper X and Z rotation to the hands of the clock so that I can set the rotation of the Y axis relative to 0,0,0 without having to request that the model be resent to me or having to fix it myself as I don't want to make my client wait too much longer.
Thanks again for all of the help!
asked Sep 14 '18 at 02:45 AM in Blueprint Scripting
As ThompsonN13 said it's going to be best to fix the rotation. I've tried re-parenting the meshes to anchors to try and get an axis that I can work with, but the import rotation is too random to make any sort of smooth calculations without hacking the current setup apart.
Thank you for the input!
answered Sep 14 '18 at 10:11 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here