Skip to content

Instantly share code, notes, and snippets.

@Adamcbrz
Last active April 22, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Adamcbrz/95f67d2c232fd8b0ee7654eacabb92fb to your computer and use it in GitHub Desktop.
Save Adamcbrz/95f67d2c232fd8b0ee7654eacabb92fb to your computer and use it in GitHub Desktop.
Tracker Tutorial: Header Projtected
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