I can't get Sim3D PreciseContacts to work

4 ビュー (過去 30 日間)
Jesse
Jesse 2024 年 6 月 14 日
コメント済み: Nishan Nekoo 2024 年 6 月 24 日
I have some concave STL mesh that I put in the 3d sim world, I noticed the collisions (require physics enabled) or overlap are detected according to a simplified convex hull around the part.
I figured the parameter PreciseContacts should do the trick, but when activated then collision events or overlap events are no longer detected.

回答 (1 件)

Nishan Nekoo
Nishan Nekoo 2024 年 6 月 17 日
Hi Jesse, do you have a script or model that you can share so that I can replicate this behavior?
  4 件のコメント
Jesse
Jesse 2024 年 6 月 19 日
Thanks for taking the time !
For example my goal was to create a whole robot/machine with translation/rotation joints between the parts.
It works really well when physics is disabled, but physics has to be enabled to detect collisions.
I also tried to use overlap instead (which was my first choice) but overlap doesn't seem to work with precisecollisions, the overlap is detected correctly only for convex parts.
Nishan Nekoo
Nishan Nekoo 2024 年 6 月 24 日
Hi Jesse, this appears to be a limitation with using PreciseContacts due to the fact that PreciseContacts uses complex collision, and collision detection happens with very single vertices and faces of the object mesh.
Objects with PreciseContacts set to true cannot generate events while
  1. Moving kinematically and interacting with static or moving objects.
  2. Static and interacting with static or moving objects which also has PreciseContacts true.
This limitation will be better documented in the future but I wanted to provide you an update here.
Nishan

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulation についてさらに検索

タグ

製品


リリース

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by