- Home /
rotation snap, or any kinda snap
Hi
when I have a group of several meshes selected, i can move them all around. If i rotate the group only one object seems to move. So i can child the objects onto a game object and rotate that. But whoopi fracking doo Uity will rotate to 700 places of decimal precision but not snap to something useful like 180. If I type in 180 in the inspector the group rotates somewhere off in space. Im stupid but wouldn't it be easier if unity snapped to anything? I know theres that snaps thing but doesn't seem to do anything
Answer by Jaywalker · Jul 05, 2010 at 03:15 PM
Unity has rotation snapping :-)
If you hold the Command key (I'm guessing Ctrl in windows?), Unity snaps to the settings you define in: Edit>Snap Settings.
If you child a bunch of objects to a object that parent will become the base for rotation. I'm guessing the problem you're having has to do with the parent objects pivot point. You can set Unity to rotate from the center of an object by changing the option at the top left of the Unity editor.
To see how it works you could just test it out in a empty scene: create two cubes, zero out there translation and rotation,parent one to the other, and rotate the parent around.
By doing this you can probably find the problem you're having with your other scene
Cheers!
Note that rotation snapping in 2D seems not to work (Unity 4.6.0f1). You will have to switch to 3D mode in the editor in order to use rotation snapping. €dit: Correction, seems like this happens only sometimes
Answer by Gabriel 1 · Oct 03, 2010 at 06:55 AM
Unity3 introduces proper Rotation snapping:
http://unity3d.com/support/documentation/Manual/Positioning%20GameObjects.html
Answer by bruno martelli_legacy · Jul 19, 2010 at 11:26 AM
ok i ve tried this and if i hold CMD and rotate my 90 rotated cube with the snap set to rot 15, if i move the thing around it will go 105, 120 etc and if i go back to centre it will be 90.00005 or something off, changing the pivot to centre, global to local dont help either...
Please provide comments as comments under the answer you refer to, not as a new answer (which you just did).