Collision detection

  • The normal vector of a shape can be approximated by sampling its SDF four times, once in each direction, offset by some small value (finite differences).

  • SDFs can be used to determine whether a point intersects with an object.