This project is read-only.


How to set min/max gizmo object scale?


I want to make possible to clamp zooming factor on selected objects to given values, but it seams that at the moment its not possible?
If you try to use Scale/UniformScale mode and scale down an object, sometime it totally disappear.
Closed Nov 23, 2012 at 1:38 PM by TomLooman
Not by default supported in the gizmo by design, scale can easily be clamped in the property of Scale in any ITransformable entity class.


TomLooman wrote May 26, 2012 at 12:45 AM


Which version are you using? (v1.0.0 from the download section or the latest source?)

If you don't want to mess with the Gizmo code, you can clamp the value inside your object.

private Vector3 _scale;
public Vector3 Scale
get { return _scale; }
_scale = MathHelper.Clamp(value, 0.1f, value);

wrote Nov 23, 2012 at 1:38 PM

wrote Feb 14, 2013 at 2:36 AM

wrote May 16, 2013 at 7:50 AM