I need an animation made within unity to spawn with the rotation of my camera, but it keeps animating in world space.
1 Answer
1What you need is:
1- determine what's the rotation that you need to apply to your object with the animation
2- apply the needed rotations to your object's transform
so basically, supposing that your object is turned to the “left and down” (lol don’t even bother trying to understand if this is the case)
myobjectwithanimations.Rotate(Vector3.up,-90,Space.World);
myobjectwithanimations.Rotate(Vector3.forward,-90,Space.World);
and this way you’ll rotate it to ‘face you’, or the camera if you will
So? What's the question?
– CHPedersen