You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add collision detection sample codes and doc #1217
Collision detection algorithm for real time processing is important for robotics.
So, these basic algorithm and knowledge should be added in this project.
Activity
idocode717 commentedon Dec 28, 2025
Continuous Collision Detection (CCD)
python
Simplified CCD for moving spheres
def sphere_ccd(sphere1_pos, sphere1_vel, sphere1_radius,
sphere2_pos, sphere2_vel, sphere2_radius):
# Relative motion
rel_pos = sphere2_pos - sphere1_pos
rel_vel = sphere2_vel - sphere1_vel
combined_radius = sphere1_radius + sphere2_radius