So i have a helicopter with a rotor that i want to spin. Those blades are not in the center of the model but i want those blade to turn. When i select the mesh and set the roation around the Y axis is rotates but it also moves from their current position.
How can i set the center of rotation so it is exactly at the center of the intersection of the blades so they rotate aroud that?
You can move the model’s pivot using the modeling application that created it. Otherwise, you can make it a child of an empty GameObject. Then give it a local position so that its new parent is where you want it to pivot, and then rotate the parent instead of the blades.
I would do it in your 3D app (unless you need to do it in Unity for some reason). Make the rotor and blades a separate object and put the pivot in the center, or, break off the blades and put their pivot where the absolute center of the rotor is. That will stop them “turning on themselves”.
THanks for the advice.
I Just put an empty gameObject as a child of those blades and put the location of that gameObject on he pivot point i want.
THen in my code i use that gameObject.transformation.position in the blades.RotateAround function. THis works like a charm!
Thanks for helping me on my way