How to achieve the collision between objects in the SofaUnity scene and objects in the Unity scene #194
-
|
I've just started learning SofaUnity. I'm curious about how to achieve a relatively tight collision and deformation effect between objects in the SofaUnity scene and other objects in Unity. I have tried some methods, such as adding a Unity collision component to SofaContext or setting virtual collision boundaries in the scene, but the results were not very satisfactory. Please tell me how to achieve it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi, unfortunately right now Unity Collider are not directly transpose to SOFA simulation. You need to setup SOFA collision model on your unity objects. This can be done using SphereCollision on the node of your object or using the SofaMeshController The best option if you would like accurate collision detection pipeline is to setup the collision on the SOFA side and them retrieve all visual models inside Unity. I hope this helps. Best regards, |
Beta Was this translation helpful? Give feedback.
Hi,
unfortunately right now Unity Collider are not directly transpose to SOFA simulation. You need to setup SOFA collision model on your unity objects. This can be done using SphereCollision on the node of your object or using the SofaMeshController
The best option if you would like accurate collision detection pipeline is to setup the collision on the SOFA side and them retrieve all visual models inside Unity.
I hope this helps.
Best regards,