Hi, I'm trying to find a point when I click on movable object. When result entry is worldFragment I can get singleIntersection as point. But when result entry is movable (a mesh), I don't know how to get a point(x, y, z) where I clicked (on that mesh).
float offsetX, offsetY;
offsetX = InputMouse.MouseState.X.abs / InputMouse.MouseState.width;
offsetY = InputMouse.MouseState.Y.abs / InputMouse.MouseState.height;
mRaySceneQuery.Ray = camera.GetCameraToViewportRay(offsetX, offsetY);
RaySceneQueryResult rsq_results = mRaySceneQuery.Execute();
foreach (RaySceneQueryResultEntry r_entry in rsq_results)
if (r_entry.worldFragment != null)
Vector3 v = r_entry.worldFragment.singleIntersection;
else if (r_entry.movable != null)
//Vector3 v = ???