External tool: read player physics

Hi everyone!

Since years I am tinkering with firmware and electronis, but recently I got a Oculus Rift as a present, so I wanted to play with Unity3D for the sake of fun and couriosity. After reading the most promising parts of the documentation and lots of forum postings, I might have missed one speciffic thing:

What is the optimal way to access the physical forces and momentum (cartesian 3D or quarts) of the gamer in the VR as a serial stream? (then use it for interactive visualizations, applying on force feedback hardware, etc.)

What I tested so far:

  • pyovr only gives me readouts about the Rift + controllers, but not in-game physical data.
  • Arduinity is cute, but requires games designed for it and it has computational restrictions on the target hardware.
  • NetEase/UnitySocketIO seems to be nicer, but requires games to provide proper socket readouts.
  • TCPListener seems to lack the same issue of sockets.

As far as I understood, Unreal Engine is integrated in Unity, so is accessing the Unreal engine really the way to go or did I get something totally wrong? Unity seems to be very convinient in so many aspects, so it is hard to believe, that there is nothing about such an elementary thing.

I would be very thankful for any support on this.
TIA

You’ve got something totally wrong :smile: Unreal Engine and Unity are totally different and disjoint game engines.

Maybe the confusion is related with the fact that both Unreal and Unity use the same physics engine under the hood (nVidia PhysX). But as far as I know, the similarities end there. :slight_smile:

As for the other question, Unity provides an API to accessing the VR data in the most easy to use way. Here’s a good starting point:

https://docs.unity3d.com/Manual/VROverview.html