We can create a plane with 3 points (~ex.: : triangle 1, formed by )

  • So given the triangle we can use the previous formula to calculate the minimum distance from .

So I can receive an haptic feedback proportional to the distance

  • For a smooth object there are no problem with this approach.