- Home /
How to rotate Freeze rotation
I made Prefab looks like windmill.
and I set it's Freeze Position as X,Y,Z and Freeze Rotation as X,Y. and It rotates well as I thought.
but problem is when I copied it in Scene view and place and rotate 90 degree. Then, It works only if I change Freeze Rotation as Y,Z. I understand what's going on but it's kind of strange.
My windmill might be placed by many different degree. and What if I want to create it dynamically and place by uncertain degree. There is no way to set Freeze Rotation with using only X,Y,Z.
Thanks
I don't get it... could you post a picture of the setting you're trying to explain?
When you say "rotate 90 degrees" you mean, the mill and around the Y axis?
I think I have understood your problem, but no sure 100%.
Try to make your windmill child of another GameObject. Then apply all the rotations on the parent, not the windmill itself.
In "object-space" the windmill has the rotation along Z axis "freezed", but since is the parent the one which is rotating you should not have the problem you were having.
:)
Answer by IgorAherne · Aug 13, 2013 at 07:45 AM
If you rotate the cross with script, you won't have any problems. In fact there shouldn't be a rigid body on the windmill. Take it off, and rotate the cross through quaternions ;)
Well, it depends what he wants to do... maybe he wants physiscs to be applied to the mill (like windZones).