Assistance with Integrating SpaceMouse Input in Unity Project

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
youngeunsong
Posts: 1
Joined: Mon Nov 25, 2024 12:24 am

Assistance with Integrating SpaceMouse Input in Unity Project

Post by youngeunsong »

Dear 3Dconnexion Developers,

I hope this message finds you well. I am currently working on a project where I aim to control the movement of a virtual object within Unity using a SpaceMouse Compact. However, I am encountering some challenges and would greatly appreciate your guidance.

Based on the information I’ve gathered, I found TDx.SpaceMouse.Navigation3D.dll file provided in your SDK, and placed it in the 'Assets/Plugins' folder of my Unity project. It appears that the DLL is being recognized by Unity without any issues.

My goal is to translate (X, Y, Z axes) and rotate (roll, pitch, yaw) a virtual object (e.g., a cube) in real time based on SpaceMouse input, such that the object’s movement aligns with the user’s intended directions. I plan to achieve this by attaching a C# script as a component to the object.

However, I am unsure which methods or APIs within the DLL I should use to retrieve the SpaceMouse input data for this purpose. Could you kindly guide me on how to access SpaceMouse movements in Unity or point me toward relevant documentation or examples?

Your support would be immensely valuable, and I thank you in advance for your time and assistance.

Best regards,
Youngeun.
ngomes
Moderator
Moderator
Posts: 3431
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: Assistance with Integrating SpaceMouse Input in Unity Project

Post by ngomes »

3Dconnexion includes a solution for Unity in the 3DxWare 10 installation. Please refer to this FAQ article.

The plugin has multiple options, including one to enable moving objects.
Nuno Gomes
Post Reply