- Download the binaries
- Run vrpnserver
- Run UniVRPNityServer
- Open the sample unity scene
- Start the scene
Actions:
- Arrow for moving the cube
- Mouse to moving the 3D text
- Copy paste UniVRPNityCommon.dll & UniVRPNityClient.dll Into your Assets folder
- Merge the UniVRPNity Assets folder with your Assets folder
- Create remote(s) device(s) (Analog, Button, Tracker)
- Specify the name of the device (see your vrpn config file)
- Create a MonoBehaviour script with remote(s) device(s) as public attribute
- Link the remote device with unity editor
- Recover informations from the remove device into Update method
public double Channel(int c)
public AnalogEvent LastEvent
public int GetNumButtons()
public bool GetButtonState(int index)
public List<TrackerEvent> Sensors
public Quaternion Orientation;
public Vector3 Position;
public int Sensor;
- Add your UnityEngine.dll & UnityEditor when it's needed
- Add VrpnNet.dll to the UniVRPNityServer
Note:
- Read the documentation