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