make proper setup for VRPN with buttons and trackers
This commit is contained in:
parent
ea953e92a6
commit
3f823111d1
10 changed files with 115 additions and 39 deletions
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://en7tpf1d6yak"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dmq3i7qmo1qe0" path="res://addons/vrpn/scripts/VRPN.gd" id="1_jrm7s"]
|
||||
[ext_resource type="Script" uid="uid://dpj1wrvfsiq4v" path="res://addons/vrpn/scripts/VRPN_Receiver.gd" id="2_fp2uy"]
|
||||
[ext_resource type="Script" uid="uid://dpj1wrvfsiq4v" path="res://addons/vrpn/scripts/VRPN_Tracker.gd" id="2_fp2uy"]
|
||||
[ext_resource type="PackedScene" uid="uid://b426fy7d6jw2d" path="res://addons/vrpn/assets/axis.blend" id="3_73ywu"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_24d08"]
|
||||
|
@ -19,20 +19,21 @@ shadow_enabled = true
|
|||
|
||||
[node name="Root" type="Node3D" parent="."]
|
||||
|
||||
[node name="VRPN" type="Node3D" parent="Root" node_paths=PackedStringArray("tracker_receivers")]
|
||||
[node name="VRPN" type="Node3D" parent="Root"]
|
||||
script = ExtResource("1_jrm7s")
|
||||
tracker_receivers = [NodePath("RB1"), NodePath("RB2")]
|
||||
vrpn_server = "212.201.64.122"
|
||||
|
||||
[node name="RB1" type="Node3D" parent="Root/VRPN"]
|
||||
[node name="RB1" type="Node3D" parent="Root/VRPN" node_paths=PackedStringArray("vrpn")]
|
||||
script = ExtResource("2_fp2uy")
|
||||
vrpn = NodePath("..")
|
||||
tracker_name = "RB1"
|
||||
|
||||
[node name="axis" parent="Root/VRPN/RB1" instance=ExtResource("3_73ywu")]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
|
||||
|
||||
[node name="RB2" type="Node3D" parent="Root/VRPN"]
|
||||
[node name="RB2" type="Node3D" parent="Root/VRPN" node_paths=PackedStringArray("vrpn")]
|
||||
script = ExtResource("2_fp2uy")
|
||||
vrpn = NodePath("..")
|
||||
tracker_name = "RB2"
|
||||
|
||||
[node name="axis" parent="Root/VRPN/RB2" instance=ExtResource("3_73ywu")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue