flexible-collision-library/fcl

Flexible Collision Library

What it solves

FCL (Flexible Collision Library) provides a set of tools to perform proximity queries between 3D geometric models. It determines if objects are touching, how far apart they are, or if they will collide during movement, which is essential for tasks like robotics or physics simulation.

How it works

Users define 3D objects using simple lists of vertices and triangles. FCL then uses these models to perform specific queries—such as collision detection, distance computation, or continuous collision detection—by comparing the geometry and transforms (position and rotation) of the objects. It supports a wide range of shapes, including boxes, spheres, meshes, and octrees, and offers "broadphase" managers to efficiently handle large groups of objects without checking every possible pair.

Who it’s for

FCL is designed for developers working in C++ who need to integrate collision detection and proximity analysis into their software, such as robotics engineers or simulation developers.

Highlights

  • Supports multiple query types: collision detection, distance computation, tolerance verification, and continuous collision detection.
  • Handles a wide variety of shapes including primitives (boxes, spheres, cones), complex meshes, and octrees.
  • Does not require complex topological data; it only needs a list of triangles to represent a model.
  • Provides efficient "broadphase" collision management to handle many objects simultaneously.
  • Cross-platform support for Linux and Windows via CMake.

Related

  • Project
  • Project
  • Project
  • Project