Skip to content

Commit

Permalink
Merge pull request #5 from BastiaanOlij/update_action_map
Browse files Browse the repository at this point in the history
Updated to new action map, new xr tools and fixed up a few things
  • Loading branch information
BastiaanOlij authored Apr 6, 2022
2 parents a2a6a4b + 19904f1 commit 4eebf34
Show file tree
Hide file tree
Showing 72 changed files with 1,739 additions and 953 deletions.
11 changes: 6 additions & 5 deletions Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ func _ready():
# enabled it in project settings!
interface = XRServer.find_interface("OpenXR")
if interface and interface.is_initialized():
print("OpenXR initialised successfully")

var vp : Viewport = get_viewport()
vp.use_xr = true



else:
print("OpenXR not initialised, please check if your headset is connected")

func _on_right_hand_button_pressed(name):
print("Pressed " + str(name))
func _on_right_hand_button_pressed(p_name):
print("Pressed " + str(p_name))
6 changes: 3 additions & 3 deletions Main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[ext_resource type="Texture2D" uid="uid://bi56aarct11p6" path="res://assets/ambientCG.com/Grass004/Grass004_1K_Roughness.jpg" id="12_mutam"]
[ext_resource type="PackedScene" uid="uid://c7mq5w60bchs0" path="res://scenes/MonkeyBars.tscn" id="13_y2500"]
[ext_resource type="PackedScene" uid="uid://cws1pq5a3toqm" path="res://scenes/BasketballCourt.tscn" id="14_oj3na"]
[ext_resource type="PackedScene" uid="uid://jg8vl8fo1ndw" path="res://assets/OpenGameArt.org/rubberduck_plant_pack/plant-pack-1.glb" id="15_54hft"]
[ext_resource type="PackedScene" uid="uid://dxc6qwbxhsnwu" path="res://assets/OpenGameArt.org/rubberduck_plant_pack/plant-pack-1.glb" id="15_54hft"]
[ext_resource type="Material" uid="uid://dinbn0e5nxxv2" path="res://assets/OpenGameArt.org/rubberduck_plant_pack/flower_01.tres" id="16_k0xyq"]
[ext_resource type="Material" uid="uid://2y2kglyj5xye" path="res://assets/OpenGameArt.org/rubberduck_plant_pack/plant_01.tres" id="17_jimiv"]
[ext_resource type="Material" uid="uid://bjon62ek345r1" path="res://assets/OpenGameArt.org/rubberduck_plant_pack/grasses_01.tres" id="18_imo6w"]
Expand Down Expand Up @@ -267,7 +267,6 @@ pose = &"aim"
[node name="RightHand" parent="XROrigin3D/RightHand" instance=ExtResource( "4_mos32" )]

[node name="Function_Direct_movement" parent="XROrigin3D/RightHand" instance=ExtResource( "2_g0m70" )]
canFly = false

[node name="Function_Pickup" parent="XROrigin3D/RightHand" instance=ExtResource( "5_5tsqm" )]
impulse_factor = 1.5
Expand All @@ -283,8 +282,9 @@ right_pickup = NodePath("../RightHand/Function_Pickup")
environment = SubResource( "Environment_v7gtd" )

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.821547, 0.247955, -0.513399, 0.189303, 0.730762, 0.655859, 0.537796, -0.636008, 0.553417, 0, 4.81216, 0)
transform = Transform3D(0.734349, -0.548768, 0.399481, 0.189303, 0.730762, 0.65586, -0.65184, -0.406007, 0.640518, 0, 4.81216, 1.27972)
light_energy = 2.0
shadow_enabled = true

[node name="Floor" type="StaticBody3D" parent="."]

Expand Down
8 changes: 6 additions & 2 deletions addons/godot-xr-tools/VERSIONS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# 3.0
# 4.0
- Port to Godot 4

# 2.4.0
-
- Added configuration setting for head height in player body.
- Added Function_JumpDetect_movement to detect jumping via the players body and/or arms
- Improved responsiveness of snap-turning
- Moved flight logic from Function_Direct_movement to Function_Flight_movement
- Added option to disable player sliding on slopes

# 2.3.0
- Added vignette
Expand Down
2 changes: 1 addition & 1 deletion addons/godot-xr-tools/assets/HandBlendTree.tres
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ nodes/Grip/position = Vector2(780, 180)
nodes/Trigger/node = SubResource( "2" )
nodes/Trigger/position = Vector2(560, 80)
nodes/output/position = Vector2(1020, 80)
node_connections = [&"Grip", 0, &"Trigger", &"Grip", 1, &"Fist2", &"Trigger", 0, &"Default", &"Trigger", 1, &"Fist", &"output", 0, &"Grip"]
node_connections = [&"Trigger", 0, &"Default", &"Trigger", 1, &"Fist", &"Grip", 0, &"Trigger", &"Grip", 1, &"Fist2", &"output", 0, &"Grip"]
Loading

0 comments on commit 4eebf34

Please sign in to comment.