Modifying Object Transformation #162
Replies: 1 comment
-
|
Hi, what is the type of the object you would like to move. Is it a full mesh or only a 3D point, rigid object (position + quaternion)? Depending on that there is several options. The best way is to update directly the position or velocity of your mechanicalObject. Best regards, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am working on an interactive simulation using SofaUnity. I have experience with Unity and can connect hardware like joysticks and potentiometers to move GameObjects by accessing their transform. I've also been learning about SOFA and can run simulations with runSofa GUI with .scn and .py files.
My goal is to modify the transformation of an object using a joystick. Specifically, I want to assign the joystick's reading to increment the Y position of the object's transformation. For instance, taking the Example_04_DeformableObjectsCollision as a reference, I want to move the Dragon by moving a joystick.
I am struggling to understand the scripts and make this work. If anyone has insights or can point me in the right direction, I'd greatly appreciate it!
Thanks in advance! :D
P.S.

I believe it has to deal with modifying the SOFA Translation here:
Beta Was this translation helpful? Give feedback.
All reactions