Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: DrBlender on September 19, 2018, 03:14:58 PM
-
Hey,
i have a little problem, i hope someone can help me =)
how can i get a rotation from gameobject1 to gameobject2? i tried with Quaternion Look Rotation but it doesnt work very well
-
Hi.
Do you have both set to 'world' or 'self'?
-
Didn't you just use Get Rotation and Set Rotation actions for that?
-
Okay, never mind, yesterday i didnĀ“t see get and set rotation... but thanks for your help!
-
Hi,
you need to use QuaternionInverse and GetQuaternionMultipliedByQuaternion action for this.
https://answers.unity.com/questions/1137604/finding-the-rotation-of-a-game-object-in-relation.html
I did a dedicated action for this so that it's easier to get. It's on the ecosystem:
GetRelativeRotation
Bye,
Jean