Hello everybody,
I hope I’m posting in the right section.
I’m on a little project and I would like your help.
Do you know if there is the possibility to add real time position and rotation of an IRL object into Unity ?
When I’ll move the object IRL, I want it to move in Unity. Is it possible ? With a chip with a IP adress maybe ?
Thank you for jour help.
It is certainly possible. Unity doesn’t have anything built in outside of the socket class to help with this though. You’ll need to create everything involved in capturing the movement and sending it to Unity. Once you have the movement inside Unity then it is just a matter of rotating the in game object like any other.
I have done similar by attaching an Intel Edison chip with an IMU that broadcasts its position and orientation 50 times a second over UDP (faster than TCP), then a service running on the PC that reads the UDP packets. You could attach most any drone flight controller, and it will do the same thing. There are many DIY flight controllers. You will either need to track the object with a camera, or have an device attached to the object sending the position info. Perhaps Lidar too, but you said you don’t want to use a camera.