HiddenMonk / Unity3DRuntimeTransformGizmo

A runtime transform gizmo similar to unitys editor so you can translate (move, rotate, scale) objects at runtime.
MIT License
707 stars 129 forks source link

Arrows growing when I move object #14

Closed craftercis closed 5 years ago

craftercis commented 5 years ago

Hey I again =D.

How can I stop the arrows with grow when I move the object? Also when I move the camera

-Cis

HiddenMonk commented 5 years ago

Not sure I understand. There is a method called GetDistanceMultiplier that is used to try and keep the gizmos size somewhat consistent no matter where the object is, far or close. If the arrows are getting bigger when you move an object closer to the camera, and smaller when you move it farther, then you might not be multiplying the length variable by the GetDistanceMultiplier(). If you do want arrows to grow when moved closer and shrink when moved farther, then just remove the GetDistanceMultiplier() from whatever length variable you want. Keep in mind that you will then need to increase the length variable value since it no longer has the GetDistanceMultiplier() to increase it. For example, I think the current triangleSize is at .03, but if you are removing the GetDistanceMultiplier() then you will need to set it to 3 or something.

If I didnt understand properly, maybe you can show an image of what you mean.

craftercis commented 5 years ago

Yes thank you verry much!