Skip to content

Commit fe0537f

Browse files
authored
Adding pivot center mode
1 parent 0dd67e3 commit fe0537f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Video demonstration - https://www.youtube.com/watch?v=IUQqhS8tsNo
66
WARNING - There is a bug in unity 5.4 and 5.5 that causes InverseTransformDirection to be affected by scale which will break negative scaling. Not tested, but updating to 5.4.2 should fix it - https://issuetracker.unity3d.com/issues/transformdirection-and-inversetransformdirection-operations-are-affected-by-scale
77

88
Just place the TransformGizmo on a gameobject with a camera.
9+
Objects must have a collider on them to be selected.
910

1011
Could use some work with how the moving is being handled. For example, I dont like how if you try to move something towards the camera, you cant get it to move past you to behind.
1112

13+
Added a pivot center mode so you can translate based on the Renderer.bounds.center instead of the normal pivot point.
14+
The way its implemented is behind the scenes we create a temporary gameobject that is placed at the Renderer.bounds.center and becomes the parent of the selected object and we just translate that temporary gameobject. So if you see a temporary gameobject poping up and then disapearing it might be this temporary gameobject.

0 commit comments

Comments
 (0)