Help with BeamDemo_01_Texture scripts #77
-
|
I'm still learning how to use Unity/Sofa/plugins so please be patient with me. 😄 In particular, in the BeamDemo_01_Texture, I am interested in understanding the keyboard arrow control functionality and the catheter elongation or shortening mechanisms. Exploring these functionalities would greatly assist me in evaluating the adaptability of the plugin to my project. Could you please provide guidance on accessing these scripts or direct me to resources where I can find scripts leveraging the SOFA plugin and its various features? Thank you so much in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi, no worry, this is the good place to learn and it will help us improving the API as well as the user doc. In the Unity scene we use a Sofa Key Event to propagate the key binding from unity to SOFA. Then in a general way, all scripts related to Unity objects that represent SOFA components are in Core/Scripts and their corresponding communication API with SOFA is inside Core/Plugins/SofaUnityAPI Hope it helps, |
Beta Was this translation helpful? Give feedback.


Hi,
no worry, this is the good place to learn and it will help us improving the API as well as the user doc.
So regarding the BeamDemo_01_Texture, it is integrating the BeamAdapater plugin of SOFA which allows to simulate complex beam models to create wire, cable or catheter behavior.
This plugin as a component that allows to deploy the device.
In the Unity scene we use a Sofa Key Event to propagate the key binding from unity to SOFA.
Then in a general way, all scripts related to Unity objects that represent SOFA components are in Core/Scripts and their corresponding communication API with SOFA is inside Core/Plugins/SofaUnityAPI
Hope it helps,
Do not hesitate if you need more information.