distance3d.hydroelastic_contact.find_contact_surface¶
- distance3d.hydroelastic_contact.find_contact_surface(rigid_body1, rigid_body2, use_aabb_trees=False)[source]¶
Find contact plane of two rigid bodies.
Note that this function will transform rigid_body1 into the frame of rigid_body2.
- Parameters:
- rigid_body1RigidBody
First rigid body.
- rigid_body2RigidBody
Second rigid body.
- use_aabb_treesbool, optional (default: False)
Option to specify the usage of aabb_trees.
- Returns:
- contact_surfaceContactSurface
Contact information.