Last active
April 29, 2016 22:03
-
-
Save maxweisel/6ed75c91f165e824ce73311959e28f52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Update() { | |
/* ... */ | |
SteamVR_Controller.Device device = SteamVR_Controller.Input((int)_trackedObject.index); | |
// Set our empty game object's rigid body to match the device's velocity and angular velocity. | |
_controllerRigidBody.velocity = device.velocity; | |
_controllerRigidBody.angularVelocity = device.angularVelocity; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment