Last active
April 22, 2019 14:01
-
-
Save Adamcbrz/95f67d2c232fd8b0ee7654eacabb92fb to your computer and use it in GitHub Desktop.
Tracker Tutorial: Header Projtected
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
protected: | |
// Called when the game starts or when spawned | |
virtual void BeginPlay() override; | |
// Our connnection to the VR System | |
vr::IVRSystem* vrSystem; | |
// ID for which tracker to utilize | |
uint32_t trackerID; | |
// I always add a scene component as my root object as default | |
USceneComponent* sceneComponent; | |
// I am attahing a camera to my scene component to use as a virtual camera. | |
UCameraComponent* cameraComponent; | |
// Method to update the tracker and returns the position of the tracker. | |
vr::HmdMatrix34_t UpdateTracker(int id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment