Page 1 of 1

Trimesh dynamics gets very slow in meters

Posted: Sun Apr 18, 2021 7:56 am
by www20602
I am running physics for meshes. When using millimeter as the metrics, my frame rate reaches 60fps. But when I change them to meters, the number lowers down to 1fps or less. I am wondering if I did a wrong option.

Figures below:
Meter, slow:
7bb5a4e30dc9b618c5db72f0e263602c93efb346.gif
7bb5a4e30dc9b618c5db72f0e263602c93efb346.gif (354.75 KiB) Viewed 19231 times
Millimeter, fast:
c57bd3b755b51e9bafc3f2e2822ee98a2f4c5bd9.gif
c57bd3b755b51e9bafc3f2e2822ee98a2f4c5bd9.gif (428.4 KiB) Viewed 19231 times
Also, when using direct ContactTestPair,
I got weird contact points even when two meshes are fully separated, as shown below.
7eaf3386de7027afb0fbbe22d219c9084f4a335b.png
7eaf3386de7027afb0fbbe22d219c9084f4a335b.png (10.42 KiB) Viewed 19231 times
These weird contact points gets disappears as I increase the metrics (i.e. meter to mm).
I have been struggling with this problem for months, and hope I could find a solution here.

Thanks.