public virtual bool Pick(ViewControl vc, Point scrPt) { Matrix4F normWorld = GetManipulatorMatrix(); if (normWorld == null) { return(false); } HitRayV = vc.GetRay(scrPt, vc.Camera.ProjectionMatrix); HitMatrix.Set(normWorld); return(true); }
public virtual ManipulatorPickResult Pick(ViewControl vc, Point scrPt) { Matrix4F normWorld = GetManipulatorMatrix(); if (normWorld == null) { return(ManipulatorPickResult.Miss); } HitRayV = vc.GetRay(scrPt, vc.Camera.ProjectionMatrix); HitMatrix.Set(normWorld); return(ManipulatorPickResult.DeferredBeginDrag); }