Add a real time object

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.

Hugo.

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.

What is an IRL object? And can you elaborate, what do you mean by a “chip with an IP address”

1 Like

I would like to take a real mug, insert the 3D model into Unity and when i move the mug in real life, i want it to move direclty on the unity project.

Like a motion capture of an object

You could attach a Vive Tracker to the object. Or attach a QR code and track that.

Thanks but i don’t want to use a camera (tracking) because there is limits of movement and rotation

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.