Check if two geometries are in collision
returns the collision status between the two convex geometries collisionStatus
= checkCollision(geom1
,geom2
)geom1
and geom2
. If the two geometries are in collision at their specified
poses, checkCollision
is equal to 1
. If no collision
is found, collisionStatus
is equal to 0
.
[
also
returns the minimal distance and witness points of each geometry,
collisionStatus
,sepdist
,witnesspts
] = checkCollision(geom1
,geom2
)sepdist
and witnesspts
, respectively, when no
collision is found between the two geometries.
Collision checking results are no longer reliable when the minimal distance falls below 10-5 m.
collisionBox
| collisionCylinder
| collisionMesh
| collisionSphere