- This topic has 3 replies, 2 voices, and was last updated 8 years, 7 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] How to move objects with keyboard and mouse?
Tagged: 64_bits, Controller, SOFA_1512, Windows_7
Hi, everyone
In my simulation, I need to control surgical tools. Previously, I had a Phantom Omni device. But now, I do not have.
I have to use keyboard and mouse to control the tools.
Is there anyone did similar things before?
Any suggestion ?
regards,
Weng Bin
Hi Weng,
You can indeed use the keyboard/mouse to interact with your simulation. Two possibilities:
Let mw know if this isn’t clear or if you need some examples of these.
Cheers,
Hugo
Dear Hugo,
Your reply does help.
Also, I found a component called MechanicalStateController in project SofaUserInteraction quite suitable for my purpose. And some examples in Controller folder are very useful.
In Qt GUI, to use mouse or keyboard, ‘Ctrl’ need to be pressed at the same time. Otherwise, the interaction defined by Qt viewer will be called.
Best regards,
Weng Bin
Hi Weng,
Perfect, let us know about your achievements in SOFA!
Cheers,
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.