4.5.0
4.2.0
4.1.0
4.0.0
4.5.0
2023.1.1
2023.1.0-hotfix.1
Other (please specify):
Operating System
Ubuntu 22.04
Ubuntu 20.04
Windows 11
Windows 10
Other (please specify):
GPU Information
Model: A4500
Driver Version: 575.57.08
Contact points between cube and plane fully aligned
Detailed Description
How to increase the number of contact points between two rigid bodies that are fully in contact as follows:
A cube that lies on top of a plane.
For now the maximum that I’ve achieved is 6 points of contacts (some of the times it can be 4 or 5). Would want to increase the resolution of the plane to identify contacts in better resolution. Also more information about how this method of generate geometry contacts work can be helpful.
Steps to Reproduce
Create cube and plane mesh
Creat an action graph
Use the output of read prims with generate geometry contacts
I’ve tried to change parameters of collider of both meshes and also parameters of generate geometry contacts.
Although both cube and plane are fully in contact I can’t produce more points of contact between these two prims.
The simulation for which I try to extract contact points between the cube and the plane:
When calling to the function get_contact_sensor_raw_data I get only 4 contact points when cube fully touches the plane.
I have also tried to use PrimView and set large number of contacts.
Then calling the function get_contact_force_data shows 4 positions and force values for the contact points, the rest of the array contains zeros.
If there is any way I can change the resolution of contact points when face fully touches the plane it can be useful.
I can add the following Python API script if it can be helpful.
This script generates the scene and prints the contact points.
When cube fully in contact with the plane only 4 out of 64 points have values of force. contact_sensor_plane_orig.py.zip (2.6 KB)
Hi @davidLe ! A cube on a plane will indeed only generate up to four contact points. This is expected and the optimal solution. Varying shapes will generate more - but the contact points go through a pruning/merging that best represents the distribution of contact forces with optimal performance.