private void GizmoScaleEvent(ITransformable transformable, TransformationEventArgs e) { var value = (Vector3)e.Value; if (_isCtrlPressed) { if (value.X != 0) { value = new Vector3(value.X); } else if (value.Y != 0) { value = new Vector3(value.Y); } else if (value.Z != 0) { value = new Vector3(value.Z); } } _activeTransformation.GizmoScaleEvent(value, e.Pivot); }
private void GizmoRotateEvent(ITransformable transformable, TransformationEventArgs e) { _activeTransformation.GizmoRotateEvent((Matrix)e.Value, e.Pivot); }
private void GizmoTranslateEvent(ITransformable transformable, TransformationEventArgs e) { _activeTransformation.GizmoTranslateEvent((Vector3)e.Value, e.Pivot); }