Hi,
I want to rotate two different objects around a single point.
I see that I can animate the property “rotation” or the property “euler”, but I can’t figure out how to perform a rotation around a xyz point, that is located outside of both game objects.
Can you parent them under another game object? In that case, you can put the parent at the designated position and then just animate its rotation (which would animate the children, your two different objects). The other option is to do this procedurally in the update function by calculating the positions yourself.
Hi Ragnar,
to parent two game objects I need to use a collection right? Or there is a way to put one game object under another one?
In the first case, it’s possibile to animate an entire collection?
Collections do not exist in runtime so generally no. But any game object hierarchies that you build in collections (or in runtime) can be animated. Move/rotate/scale a parent and the children are transformed accordingly.
(Remember though that parent-child hierarchies affect the scene graph only.)