• 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 dbranch48 · Dec 14, 2017 at 07:20 AM · gyroscopeintegrationgyro

External gyroscope question

So I have an external IMU (gyroscope) (not on phone or PC) and I want to use the data gathered from that IMU in my Unity game. How would I enable Unity to accept this data?

I have a windows PC. Currently I am using a TCP connection between my IMU and PC through mobaXterm terminal and I am able to receive the IMU data.

Would using my external IMU data be possible? If it is, how involved is the process/can someone give advice on how it could be done?

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by FortisVenaliter · Dec 14, 2017 at 06:35 PM

I'm pretty sure you can access C# .NET Socket classes, but only for Windows development. So, as long as you're doing it on Windows, you should be able to hook it up to the sensor the same way you'd hook up any other C# program. Beyond that, though, would not be a Unity question, and would probably be better asked elsewhere.

Comment
Add comment · Show 1 · 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 Bunny83 · Dec 14, 2017 at 07:04 PM 0
Share

The .NET socket classes work on most build platforms. The only true exception is WebGL and maybe some exotic console targets. However the "main" targets which are Standalone (Win, $$anonymous$$ac, Linux Ubuntu 12.04+) and $$anonymous$$obile (iOS, Android) should work just fine. Even WindowsPhone has socket support, however it uses a slightly different API.


Unity uses it's own $$anonymous$$ono environment which is shipped with your build. It doesn't rely on .NET / $$anonymous$$ono being installed on the target platform. An exception is the WindowsPhone and "Windows Store Apps" afaik as they use the actual .NET environment that's preinstalled on those platforms.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

73 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 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 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 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 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 avatar image avatar image avatar image

Related Questions

How should I interpret the gyro's information? 0 Answers

Android gyro 1 Answer

How to get the value of the an angle of the Gyroscope? 1 Answer

detect 360 spin on mobile device 1 Answer

Rotate objects towards gps coordinates 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges