Continuous Collision Detection (CCD) computes the time of first contact between moving geometries by solving for the roots of motion polynomials, often using conservative advancement or interval arithmetic. Unlike discrete detection, which samples static snapshots, CCD guarantees that no intersection is missed regardless of object velocity or temporal resolution, making it essential for rigid body physics and high-speed robotic path planning.
Glossary
Continuous Collision Detection (CCD)

What is Continuous Collision Detection (CCD)?
Continuous Collision Detection (CCD) is a geometric algorithm that checks for intersections along the entire continuous motion path of an object between two discrete time steps, preventing the 'tunneling' artifact where fast-moving or small objects pass completely through obstacles undetected by discrete checks.
In industrial robotics, CCD is implemented within narrow-phase collision checkers using swept-volume tests or adaptive bisection methods to validate trajectories between waypoints. The computational cost is higher than discrete methods, so it is typically reserved for final trajectory validation or scenarios involving thin obstacles where tunneling would cause catastrophic failures.
Key Characteristics of CCD
Continuous Collision Detection (CCD) is a computational geometry method that checks for intersections along the entire swept volume of a moving object between two discrete timesteps, rather than just at the endpoints. This prevents the tunneling artifact, where fast-moving or thin objects pass completely through obstacles undetected.
Swept Volume Intersection
CCD models the motion of an object as a continuous trajectory in space-time, computing the swept volume—the union of all space occupied during the interval. A collision is reported if this volume intersects any obstacle. This contrasts with Discrete Collision Detection (DCD) , which only samples static configurations at frame boundaries. The swept volume is often approximated using convex hulls of the object's pose at the start and end of the timestep, enabling efficient overlap tests with bounding volume hierarchies.
Time of Impact (TOI) Computation
A core CCD algorithm computes the Time of Impact (TOI) —the exact fractional moment between t=0 and t=1 when two moving objects first make contact. Conservative Advancement (CA) methods iteratively advance objects along their trajectories by the minimum separation distance until the distance falls below a tolerance. The TOI is critical for physics engines and robotic path planners, enabling them to roll back simulations to the precise instant of contact for accurate constraint resolution.
Conservative Advancement
Conservative Advancement (CA) is the foundational iterative algorithm for CCD. At each step, it computes the minimum distance between two convex shapes, then advances time by a fraction proportional to that distance divided by an upper bound on relative velocity. This guarantees no collision is missed because the advancement is conservative—it never jumps past a potential contact. The Gilbert-Johnson-Keerthi (GJK) algorithm is typically used for the distance queries, making CA robust for polygonal and implicit surfaces.
Tunneling Artifact Prevention
The tunneling artifact occurs in discrete detection when a fast-moving projectile or thin feature traverses an obstacle entirely within a single timestep, leaving no overlapping samples. CCD eliminates this by considering the continuous motion. This is critical in:
- Robotic surgery: preventing needle-thin tools from piercing virtual safety boundaries
- High-speed assembly: ensuring fast pick-and-place end-effectors don't clip through fixtures
- Game physics: stopping bullets from passing through walls at high frame rates
CCD in Motion Planning
In robotic path planning, CCD is integrated into collision checking routines to validate entire trajectory segments, not just waypoints. Sampling-based planners like RRT and PRM use CCD to ensure the straight-line connection between two sampled configurations is collision-free. Without CCD, a planner might certify a path as valid even though the robot's swept volume intersects an obstacle during the motion. MoveIt and OMPL both support CCD backends like FCL (Flexible Collision Library) for this purpose.
Performance Trade-offs
CCD is computationally more expensive than DCD because it requires solving for the earliest contact time rather than a simple overlap test. Key performance considerations include:
- Narrow-phase cost: TOI queries using GJK/CA are O(n) in iteration count
- Broad-phase acceleration: Sweep-and-prune or bounding volume hierarchies cull non-intersecting pairs before CCD
- Adaptive strategies: Many systems use DCD by default and fall back to CCD only for objects exceeding a velocity-thickness ratio threshold, balancing safety with throughput
Frequently Asked Questions
Essential questions and answers about the algorithmic techniques that prevent high-speed objects from tunneling through obstacles during physics simulations and robotic motion planning.
Continuous Collision Detection (CCD) is a computational method that checks for collisions along the entire continuous motion path between two discrete timesteps, rather than only at the sampled positions. It works by constructing a swept volume—the space occupied by an object during its movement from time t to t+1—and testing for intersections against other swept volumes or static geometry. The core mechanism involves solving for the Time of Impact (TOI), the exact fractional moment between frames when two objects first make contact. This is typically achieved through conservative advancement, an iterative algorithm that repeatedly computes the minimum separation distance between objects and advances them by that safe amount until they touch within a tolerance. Unlike discrete detection, which can miss collisions when objects move faster than their own diameter per frame, CCD guarantees that no interpenetration goes undetected, making it essential for tunneling prevention in physics engines like Bullet and PhysX.
Discrete vs. Continuous Collision Detection
A technical comparison of the two primary paradigms for verifying collision-free motion in robotic path planning, highlighting the tunneling problem and computational trade-offs.
| Feature | Discrete Detection | Continuous Detection (CCD) |
|---|---|---|
Core Mechanism | Static overlap test at sampled configurations | Swept-volume or trajectory parameterization test |
Tunneling Prevention | ||
Computational Cost per Query | Low | High |
Typical Use Case | Static scene validation | Thin/fast-moving object validation |
Narrow-Phase Algorithm | Gilbert-Johnson-Keerthi (GJK) | Conservative Advancement |
Time Step Sensitivity | High (misses inter-frame contact) | Low (guarantees inter-frame contact) |
Integration Complexity | Simple | Complex (requires angular bounds) |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Continuous Collision Detection is a foundational geometric query that integrates with broader path planning and control architectures. The following concepts form the ecosystem in which CCD operates.
Configuration Space (C-Space)
The mathematical space representing all possible positions and orientations of a robot. In C-space, the robot is treated as a point, and obstacles are inflated by the robot's geometry. Path planning then reduces to finding a continuous curve for this point. CCD operates directly in C-space to verify that the swept volume between two configurations does not intersect any obstacle representation.
Gilbert-Johnson-Keerthi (GJK) Algorithm
An iterative algorithm that efficiently computes the minimum distance between two convex shapes. GJK serves as the foundational narrow-phase collision detection routine in robotics. When paired with CCD, GJK is extended via time-of-impact calculations to determine the exact moment of first contact between two moving convex hulls, preventing tunneling artifacts.
Signed Distance Field (SDF)
A volumetric representation where each voxel stores the shortest distance to the nearest obstacle surface, with negative values indicating interior points. SDFs enable constant-time distance queries, making them ideal for real-time CCD. By evaluating the SDF along a swept trajectory, planners can detect penetrations without iterative geometric intersection tests.
Trajectory Optimization
A numerical optimization approach that refines an initial path into a dynamically feasible trajectory by minimizing a cost function subject to constraints. CCD is embedded as a hard constraint within these optimizers, ensuring that the continuous-time polynomial or spline segments never intersect obstacles. Violations trigger constraint penalty gradients that push the trajectory into free space.
Model Predictive Control (MPC)
A real-time control strategy that solves a finite-horizon optimization problem at each timestep. In dynamic environments, MPC relies on CCD to validate the predicted horizon against moving obstacles. The controller simulates the robot's future swept volume and aborts or adjusts trajectories when a collision is predicted within the receding horizon.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us