Hi, I just recently started playing around with Unity3D and am loving it so far. I come from an 3D Illustration and VFX background so I'm quick to get used to Unity's interface and functions. But one weird thing I noticed while trying to write a simple script for rotating my camera around a target/null (an empty game object that is the parent of the main camera (kindof using them the same way I use Null objects in Lightwave). Anyways... I noticed that when rotating on the X axis, the null/parent object was also sliding it's position, thus kindof ruining the effect I was going for. On further examination I found out that even without any components and scripts except for the transform component it, I noticed that when tweaking the rotation value in the inspector panel, I could see is sliding in the scene-view (but inspector showed no change in the translate values). Then again if I use the rotate tool (clicking and dragging tha handles in scene-view) the object stayed in place and only rotated around itself, but in the inspector panel I could see it adding positional values like it was interactively fixing itself in place.
I'm thinking there must be a logical reason why this is happening, but as it is I just can't see what I'm doing wrong, can anyone explain what I'm doing/thinking wrong?
asked Aug 29 '10 at 01:52 PM
The object's pivot point is off center from where you think it is.
answered Aug 30 '10 at 02:59 PM