newton.geometry.collide_sphere_box#
- newton.geometry.collide_sphere_box(sphere_pos, sphere_radius, box_pos, box_rot, box_size)[source]#
Core contact geometry calculation for sphere-box collision.
- Parameters:
- Returns:
dist: Distance between surfaces (negative if overlapping) pos: Contact position (midpoint between closest surface points) normal: Contact normal vector (from sphere toward box)
- Return type:
Tuple containing