public Vector3 ClosestPoint(Vector3 position) { physXPoint.FromVector(position); if (PhysXLib.GetClosestPointOnShape(shape, physXPoint, physXClosestPoint) == 0) { return(position); } return(physXClosestPoint.ToVector()); }