- Home /
External IMU data to control iOS game via BLE
Hi,
I'm trying to use the accelerometer and gyroscope data from a TI sensortag ( www.ti.com/tool/cc2541dk-sensor ) to control the orientation of elements in a Unity 3d game.
Does anyone know any examples of this being achieved with external motion inputs rather than the internal motion sensors on the iPhone?
This is the setup I'm trying to create.
Pair external IMU device to an iOS device via Bluetooth LE
Stream motion data from the IMU device to the iOS device
Use the data to control the orientation and position of elements in the Unity3d game.
Any help would be much appreciated,
Critty.
You could try looking at U3DXT's plugin, it's a little costly compared to others, but it allows the use of a lot of iOS's core features in Unity3D. For your purposes they have a CoreBluetooth element in their plugin, that allows you to do all sorts of bluetooth related things.. the only set back is that they haven't uploaded any documentation for it.
Let me know how you get on with this, as it's something I'm very interested in also! Thanks, hope this helps =)