1

Closed

How to set min/max gizmo object scale?

description

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.
 
Thanks
Closed Nov 23, 2012 at 12: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.

comments

TomLooman wrote May 25, 2012 at 11:45 PM

Hi,

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; }
set
{
_scale = MathHelper.Clamp(value, 0.1f, value);
}
}

wrote Nov 23, 2012 at 12:38 PM

wrote Feb 14, 2013 at 1:36 AM

wrote May 16, 2013 at 6:50 AM