Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by alone1992 · May 08, 2013 at 06:27 PM · 3ddeviceinput managersensor

How to use costum device like 3dsensor in unity

hello every one We have a MTi , The MTi is an excellent measurement unit (IMU) for stabilization and control of cameras, robots, vehicles and other (un)manned equipment.The MTi is a miniature, gyro-enhanced Attitude and Heading Reference System (AHRS). Its internal low-power signal processor provides drift-free 3D orientation as well as calibrated 3D acceleration, 3D rate of turn and 3D earth-magnetic field data. the problem is this : We don't know how to use it in my unity3d engine and how to define it moving and rotating & other out puts in my game code scripts? for example We can't write a code to this and connect its movement in a simple cube in game and when we rotating sensor in real world the cube in game rotate. We can't use this sensor in unity3d please help us. more about that device in here thanks

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image frarees · May 08, 2013 at 06:44 PM 0
Share

Haven't ever tried, but if you're on a $$anonymous$$ac, as long as your device is registered as a HID, you can access it like you would do with a joystick.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Graham-Dunnett · May 08, 2013 at 08:07 PM

So, the generic answer to your question is:

  1. Write an application in c++ or whatever you are familiar with that knows how to talk to the device. Most devices will come with a DLL or an SDK or something that lets you talk to the device. (Otherwise the device is useless). The application you write does not use Unity.

  2. Get the application you write at (1) to dump out the essential data to a text file, or console, or something so you can see that your application works.

  3. Extend your application so the data you write out at (2) gets written to a socket that the application opens. (You'll need a small listening application that knows to listen on the socket and it should dump out the data is reads from the socket.) You now have the app talking to a different application.

  4. Re-write the listening app in JS or c# that runs inside Unity. Unity can now see the data that your application spits out.

  5. Use the data that you read over the socket to change the position of your camera/gameobject/whatever in Unity.

This is the generic solution to your problem. Since I have never heard of the MTi I don't know if this approach is viable. This approach should work with Pro and free Unity.

If you have Pro, then you can write a DLL (plugin) to avoid using sockets.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image alone1992 · May 09, 2013 at 05:56 AM 0
Share

we have a file C$$anonymous$$T Example Dll but don't know hot to use it. If you Don't know what is $$anonymous$$Ti I put link in my answer you can read that. thanks

avatar image Graham-Dunnett ♦♦ · May 09, 2013 at 01:58 PM 1
Share

I don't know how to use that DLL either. $$anonymous$$aybe the people who made it can help you.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to detect iPhone sensor with unity javascript 2 Answers

sensor temperature android 0 Answers

Raycast and colliders problem. Corners of two colliders 0 Answers

How would i make an object change color every second? 0 Answers

Unity is adding edges to imported fbx 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges