Working with Varjo and Vive Tracker
This commit is contained in:
parent
6d93630e50
commit
55004f3e60
5 changed files with 44 additions and 10 deletions
|
|
@ -34,12 +34,16 @@ func _ready() -> void:
|
|||
xr_interface.session_focussed.connect(_on_openxr_focused_state)
|
||||
xr_interface.session_stopping.connect(_on_openxr_stopping)
|
||||
xr_interface.pose_recentered.connect(_on_openxr_pose_recentered)
|
||||
XRServer.tracker_added.connect(_on_tracker_added)
|
||||
else:
|
||||
# We couldn't start OpenXR.
|
||||
print("OpenXR not instantiated!")
|
||||
get_tree().quit()
|
||||
|
||||
|
||||
func _on_tracker_added(tracker_name: StringName, type: int) -> void:
|
||||
print("added tracker", tracker_name, "type", type)
|
||||
|
||||
# Handle OpenXR session ready.
|
||||
func _on_openxr_session_begun() -> void:
|
||||
# Get the reported refresh rate.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue