diff --git a/ovr-utils/addons/openvr_overlay/overlay_instance.gd b/ovr-utils/addons/openvr_overlay/overlay_instance.gd index 35ac057..ac28732 100644 --- a/ovr-utils/addons/openvr_overlay/overlay_instance.gd +++ b/ovr-utils/addons/openvr_overlay/overlay_instance.gd @@ -5,7 +5,7 @@ export (TARGETS) var target = TARGETS.head setget _set_target export var overlay_scene = preload("res://addons/openvr_overlay/MissingOverlay.tscn") setget _set_overlay_scene export var offset_pos := Vector3(0, 0, -1) setget _set_offset_pos export var offset_rot: Vector3 setget _set_offset_rot -export var width_meters = 0.4 +export var width_meters = 0.4 setget _set_width_meters export var fallback_to_hmd = false # fallback is only applied if tracker is not present at startup var _tracker_id: int = 0 setget ,get_tracker_id @@ -85,6 +85,11 @@ func _set_offset_rot(rot: Vector3): update_offset() +func _set_width_meters(width: float): + width_meters = width + $OverlayViewport.overlay_width_in_meters = width_meters + + func _set_overlay_scene(scene: PackedScene): overlay_scene = scene if $OverlayViewport.get_children(): diff --git a/ovr-utils/project.godot b/ovr-utils/project.godot index 3179833..b2bec3c 100644 --- a/ovr-utils/project.godot +++ b/ovr-utils/project.godot @@ -31,7 +31,6 @@ singletons=[ "res://addons/godot-openvr/godot_openvr.gdnlib" ] [physics] -common/physics_fps=1 common/enable_pause_aware_picking=true [rendering]