OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-godot4-test commits / 56261c6

some updates
56261c6b41561c5bb7df597d43909ffab6d18f10
by Dresk Spidflisk <dreskspidflisk@gmail.com> · 2022-04-28T20:34:12.000Z

Changed files (5) +166 -82

game/maps/map_core.gd +7 -5
……@@ -17,9 +17,11 @@ func getSpawnLocation() -> Vector3:
1717 return spawnNode.global_transform.origin
1818
1919func getInstanceOfMapWorldEnvironmentScene():
20 var path = "res://assets/maps/" + map_name + "/" + map_name + "_environment.scn"
21 var worldEnvironment = load(path)
22 return worldEnvironment
20 var new_environment_node = WorldEnvironment.new()
21 var path = "res://assets/maps/" + map_name + "/" + map_name + "_environment.res"
22 new_environment_node.environment = load(path)
23
24 return new_environment_node
2325
2426func updateMapWorldEnvironmentScene():
2527 # First check to see if we need to delete any existing World Environments
……@@ -28,7 +30,7 @@ func updateMapWorldEnvironmentScene():
2830 # Spawn in new World Environment
2931 var worldEnvironment = getInstanceOfMapWorldEnvironmentScene()
3032 if(worldEnvironment != null):
31 add_child(worldEnvironment.instance())
33 add_child(worldEnvironment)
3234
3335func addGrapplingHookCollisionMaskToMap():
3436 var _name = self.name
……@@ -51,7 +53,7 @@ func checkAndSetChildrenGrapplingHookMask(_Node, indentLevel : int):
5153
5254func _on_Area_body_entered(body, _map_name):
5355 if(body is CharacterBody3D):
54 var mapNodes = get_tree().get_current_scene().get_node("Maps").find_nodes(_map_name, "", true, false)
56 var mapNodes = get_tree().get_current_scene().get_node("Maps").find_children(_map_name, "", true, false)
5557 for i in range(0, mapNodes.size()):
5658 if mapNodes[i].name == _map_name:
5759 body.currentMap = mapNodes[i]
game/player/player_animation_tree.tres +1 -1
……@@ -187,4 +187,4 @@ nodes/walk_scale/node = SubResource( "AnimationNodeTimeScale_bvg56" )
187187nodes/walk_scale/position = Vector2(-640, 360)
188188nodes/wall_run/node = SubResource( "AnimationNodeTransition_ur2dc" )
189189nodes/wall_run/position = Vector2(720, -60)
190node_connections = [&"output", 0, &"wall_run", &"roll", 0, &"air_transition", &"roll", 1, &"roll_scale", &"roll_scale", 0, &"Animation", &"walk_scale", 0, &"Animation 4", &"falling_scale", 0, &"Animation 7", &"Blend2", 0, &"Animation 8", &"Blend2", 1, &"Animation 9", &"TimeScale 3", 0, &"strafe", &"air_blend", 0, &"jump_scale", &"air_blend", 1, &"falling_scale", &"air_blend", 2, &"landing_scale", &"run_scale", 0, &"Animation 5", &"Blend2 2", 0, &"Animation 12", &"Blend2 2", 1, &"Animation 10", &"landing_scale", 0, &"Animation 3", &"air_transition", 0, &"air_blend", &"air_transition", 1, &"aim_transition", &"jump_scale", 0, &"Animation 6", &"iwr_blend", 0, &"Animation 2", &"iwr_blend", 1, &"walk_scale", &"iwr_blend", 2, &"run_scale", &"wall_run", 0, &"Blend2", &"wall_run", 1, &"Blend2 2", &"wall_run", 2, &"roll", &"aim_transition", 0, &"TimeScale 3", &"aim_transition", 1, &"iwr_blend"]
190node_connections = [&"output", 0, &"wall_run", &"roll", 0, &"air_transition", &"roll", 1, &"roll_scale", &"Blend2", 0, &"Animation 8", &"Blend2", 1, &"Animation 9", &"Blend2 2", 0, &"Animation 12", &"Blend2 2", 1, &"Animation 10", &"TimeScale 3", 0, &"strafe", &"aim_transition", 0, &"TimeScale 3", &"aim_transition", 1, &"iwr_blend", &"air_blend", 0, &"jump_scale", &"air_blend", 1, &"falling_scale", &"air_blend", 2, &"landing_scale", &"iwr_blend", 0, &"Animation 2", &"iwr_blend", 1, &"walk_scale", &"iwr_blend", 2, &"run_scale", &"roll_scale", 0, &"Animation", &"jump_scale", 0, &"Animation 6", &"walk_scale", 0, &"Animation 4", &"wall_run", 0, &"Blend2", &"wall_run", 1, &"Blend2 2", &"wall_run", 2, &"roll", &"air_transition", 0, &"air_blend", &"air_transition", 1, &"aim_transition", &"run_scale", 0, &"Animation 5", &"landing_scale", 0, &"Animation 3", &"falling_scale", 0, &"Animation 7"]
game/player/player_core.gd +1 -1
……@@ -106,7 +106,7 @@ func directionUpdate(_direction : Vector3):
106106
107107func getSpawnLocationForMapName(mapName : String) -> Vector3:
108108 # Get Map Node
109 var mapNodes = get_tree().get_current_scene().get_node("Maps").find_nodes(mapName, "", true, false)
109 var mapNodes = get_tree().get_current_scene().get_node("Maps").find_children(mapName, "", true, false)
110110 if(mapNodes == null or mapNodes.size() == 0):
111111 return get_tree().get_current_scene().get_node("Maps").get_node("map_test").getSpawnLocation()
112112 else:
game/player/player_core_local.tscn +148 -72
……@@ -1,102 +1,173 @@
1[gd_scene load_steps=7 format=3 uid="uid://ds36d5iqtsvuh"]
1[gd_scene load_steps=30 format=3 uid="uid://ds36d5iqtsvuh"]
22
33[ext_resource type="PackedScene" uid="uid://th4ivyj7adfg" path="res://game/player/player_core.tscn" id="1"]
44[ext_resource type="Script" path="res://game/player/player_core_local_input.gd" id="2"]
5[ext_resource type="Animation" uid="uid://bhxwd0hc1xwol" path="res://assets/models/tumble/animation/default.res" id="2_3lvdg"]
56[ext_resource type="Script" path="res://game/player/player_core_local_input_special.gd" id="3"]
7[ext_resource type="Animation" uid="uid://b641gdt8rlxs0" path="res://assets/models/tumble/animation/idle.res" id="3_xfe16"]
68[ext_resource type="PackedScene" uid="uid://bdo2nek3n4knj" path="res://game/player/grappling_hook/gh_visual_point_1.tscn" id="4"]
9[ext_resource type="Animation" uid="uid://cevud8wm6itgs" path="res://assets/models/tumble/animation/walk-forward.res" id="4_s5ryo"]
710[ext_resource type="PackedScene" uid="uid://cq34ge5fyxan8" path="res://game/player/player_core_local_debugui.tscn" id="5"]
11[ext_resource type="Animation" uid="uid://bbo2efp3p5j45" path="res://assets/models/tumble/animation/landing.res" id="5_mqp7y"]
12[ext_resource type="Animation" uid="uid://beqlu220rgebq" path="res://assets/models/tumble/animation/sprint.res" id="6_dqvc6"]
13[ext_resource type="Animation" uid="uid://3m8jnrrjmb8n" path="res://assets/models/tumble/animation/dive-roll.res" id="7_t5x5g"]
14[ext_resource type="Animation" uid="uid://csbbfdgwqo8tq" path="res://assets/models/tumble/animation/falling.res" id="8_86wts"]
815[ext_resource type="AudioStream" uid="uid://cs26rjexov20r" path="res://assets/sounds/player/fire_grapplinghook1.mp3" id="9"]
16[ext_resource type="Animation" uid="uid://cllf5vh5wfe4m" path="res://assets/models/tumble/animation/jump.res" id="9_edfyb"]
17[ext_resource type="Animation" uid="uid://h4f7tog32k57" path="res://assets/models/tumble/animation/walk-backward.res" id="10_33t3r"]
18[ext_resource type="Animation" uid="uid://cetrd58cpnn2x" path="res://assets/models/tumble/animation/walk-diagonal-left.res" id="11_v4hfn"]
19[ext_resource type="Animation" uid="uid://crlfbbyt7jnwd" path="res://assets/models/tumble/animation/walk-diagonal-left-back.res" id="12_6r0iy"]
20[ext_resource type="Animation" uid="uid://b046urodah0a1" path="res://assets/models/tumble/animation/strafe-left.res" id="13_m6doc"]
21[ext_resource type="Animation" uid="uid://brqor25qijknl" path="res://assets/models/tumble/animation/walk-diagonal-right.res" id="14_6a5ke"]
22[ext_resource type="Animation" uid="uid://cy81owqw5jwgd" path="res://assets/models/tumble/animation/walk-diagonal-right-back.res" id="15_htoqq"]
23[ext_resource type="Animation" uid="uid://rejlngohxkgr" path="res://assets/models/tumble/animation/wall-grab-l.res" id="16_xyssk"]
24[ext_resource type="Animation" uid="uid://dg0td345nrdbe" path="res://assets/models/tumble/animation/run.res" id="17_8ik7u"]
25[ext_resource type="Animation" uid="uid://bkvaodakwug3e" path="res://assets/models/tumble/animation/wall-run-l.res" id="18_qntyn"]
26[ext_resource type="Animation" uid="uid://4ixqttqa6txu" path="res://assets/models/tumble/animation/wall-run-r.res" id="19_3w5sk"]
27[ext_resource type="Animation" uid="uid://b0vglu3hw56jb" path="res://assets/models/tumble/animation/strafe_right.res" id="20_o2xjy"]
28[ext_resource type="Animation" uid="uid://diu138rt4wbo4" path="res://assets/models/tumble/animation/wall-grab-f.res" id="21_a34r2"]
29[ext_resource type="Animation" uid="uid://cjiv1m5iedtef" path="res://assets/models/tumble/animation/wall-grab-r.res" id="22_548fu"]
30
31[sub_resource type="AnimationLibrary" id="AnimationLibrary_mfbj4"]
32_data = {
33"default": ExtResource( "2_3lvdg" ),
34"dive-roll": ExtResource( "7_t5x5g" ),
35"falling": ExtResource( "8_86wts" ),
36"idle": ExtResource( "3_xfe16" ),
37"jump": ExtResource( "9_edfyb" ),
38"landing": ExtResource( "5_mqp7y" ),
39"run": ExtResource( "17_8ik7u" ),
40"sprint": ExtResource( "6_dqvc6" ),
41"strafe-left": ExtResource( "13_m6doc" ),
42"strafe-right": ExtResource( "20_o2xjy" ),
43"walk-backward": ExtResource( "10_33t3r" ),
44"walk-diagonal-left": ExtResource( "11_v4hfn" ),
45"walk-diagonal-left-back": ExtResource( "12_6r0iy" ),
46"walk-diagonal-right": ExtResource( "14_6a5ke" ),
47"walk-diagonal-right-back": ExtResource( "15_htoqq" ),
48"walk-forward": ExtResource( "4_s5ryo" ),
49"wall_grab_f": ExtResource( "21_a34r2" ),
50"wall_grab_l": ExtResource( "16_xyssk" ),
51"wall_grab_r": ExtResource( "22_548fu" ),
52"wall_run_l": ExtResource( "18_qntyn" ),
53"wall_run_r": ExtResource( "19_3w5sk" )
54}
55
56[sub_resource type="AnimationLibrary" id="AnimationLibrary_jepw0"]
57_data = {
58"default": ExtResource( "2_3lvdg" ),
59"dive-roll": ExtResource( "7_t5x5g" ),
60"falling": ExtResource( "8_86wts" ),
61"idle": ExtResource( "3_xfe16" ),
62"jump": ExtResource( "9_edfyb" ),
63"landing": ExtResource( "5_mqp7y" ),
64"run": ExtResource( "17_8ik7u" ),
65"sprint": ExtResource( "6_dqvc6" ),
66"strafe-left": ExtResource( "13_m6doc" ),
67"strafe_right": ExtResource( "20_o2xjy" ),
68"walk-backward": ExtResource( "10_33t3r" ),
69"walk-diagonal-left": ExtResource( "11_v4hfn" ),
70"walk-diagonal-left-back": ExtResource( "12_6r0iy" ),
71"walk-diagonal-right": ExtResource( "14_6a5ke" ),
72"walk-diagonal-right-back": ExtResource( "15_htoqq" ),
73"walk-forward": ExtResource( "4_s5ryo" ),
74"wall-grab-f": ExtResource( "21_a34r2" ),
75"wall-grab-l": ExtResource( "16_xyssk" ),
76"wall-grab-r": ExtResource( "22_548fu" ),
77"wall-run-l": ExtResource( "18_qntyn" ),
78"wall-run-r": ExtResource( "19_3w5sk" )
79}
980
1081[node name="PlayerCoreLocal" instance=ExtResource( "1" )]
1182
1283[node name="Skeleton3D" parent="Model/Armature" index="0"]
1384bones/0/position = Vector3(0, 0.235168, 0)
14bones/1/position = Vector3(-0.0296494, 0.0210373, 0.773088)
15bones/1/rotation = Quaternion(0.000234572, 0.567067, 0.823672, 0.000647859)
16bones/2/rotation = Quaternion(0.104841, 8.12628e-06, -9.12826e-05, 0.994489)
17bones/3/rotation = Quaternion(0.000527304, 0.999149, -0.0411093, -0.00320403)
85bones/1/position = Vector3(-0.0294857, 0.0211438, 0.772159)
86bones/1/rotation = Quaternion(0.000344006, 0.566095, 0.824339, 0.000950204)
87bones/2/rotation = Quaternion(0.106372, 1.20848e-05, -0.000133848, 0.994326)
88bones/3/rotation = Quaternion(0.000773373, 0.999177, -0.0402888, -0.00469782)
1889bones/3/scale = Vector3(1, 1, 1)
19bones/4/rotation = Quaternion(0.126882, 0.00318036, -0.000245816, 0.991913)
20bones/5/rotation = Quaternion(-0.000465204, 0.995035, 0.0994782, 0.00300426)
21bones/6/rotation = Quaternion(0.0944349, 3.85301e-05, 3.95059e-06, 0.995531)
22bones/7/rotation = Quaternion(0.000434374, 0.991498, 0.130088, 0.00300999)
23bones/8/position = Vector3(0.021036, 0.14764, 0.0928254)
90bones/4/rotation = Quaternion(0.127912, 0.00466565, -0.000360719, 0.991774)
91bones/5/rotation = Quaternion(-0.000682313, 0.995039, 0.0993858, 0.00440634)
92bones/6/rotation = Quaternion(0.0942382, 5.65126e-05, 5.81163e-06, 0.99555)
93bones/7/rotation = Quaternion(0.000637103, 0.99143, 0.130566, 0.00441509)
94bones/8/position = Vector3(0.021036, 0.147372, 0.0929216)
2495bones/8/rotation = Quaternion(-0.574533, -0.380402, -0.372139, 0.621867)
25bones/9/rotation = Quaternion(0.0375242, 0.754883, -0.613231, 0.229546)
26bones/9/scale = Vector3(1.00618, 0.987644, 1.00618)
27bones/10/rotation = Quaternion(1.52031e-07, -0.11501, 2.96978e-09, 0.993364)
28bones/11/rotation = Quaternion(0.441856, -0.1006, 0.0497069, 0.890041)
29bones/11/scale = Vector3(0.999515, 0.989005, 1.01152)
30bones/12/rotation = Quaternion(9.75357e-07, 0.0787075, -4.9601e-07, 0.996898)
31bones/13/rotation = Quaternion(-0.077858, 0.0695668, -0.128313, 0.986222)
32bones/13/scale = Vector3(0.995069, 1.01005, 0.994988)
33bones/15/rotation = Quaternion(0.152495, 0.0320204, -0.0648276, 0.985656)
34bones/16/rotation = Quaternion(-0.00581883, 0.00169818, -0.00528004, 0.999968)
35bones/17/rotation = Quaternion(0.00656525, -0.00667401, 0.0208093, 0.99974)
96bones/9/rotation = Quaternion(0.0377122, 0.753412, -0.615348, 0.228681)
97bones/9/scale = Vector3(1.00609, 0.987752, 1.00609)
98bones/10/rotation = Quaternion(1.49667e-07, -0.124096, 9.1207e-11, 0.99227)
99bones/11/rotation = Quaternion(0.438577, -0.103178, 0.0505045, 0.891322)
100bones/11/scale = Vector3(0.999515, 0.989107, 1.0113)
101bones/12/rotation = Quaternion(9.76131e-07, 0.0864995, -4.92131e-07, 0.996252)
102bones/13/rotation = Quaternion(-0.0721799, 0.0731169, -0.127922, 0.986448)
103bones/13/scale = Vector3(0.994905, 1.01004, 0.995154)
104bones/16/rotation = Quaternion(-0.00581887, 0.0016982, -0.00528009, 0.999968)
105bones/17/rotation = Quaternion(0.0065653, -0.00667406, 0.0208095, 0.99974)
36106bones/18/rotation = Quaternion(0.178116, 0.150551, -0.33769, 0.911907)
37107bones/18/scale = Vector3(1, 1, 1)
38108bones/19/rotation = Quaternion(-0.148158, 0.0254844, -0.0646288, 0.986521)
39109bones/20/rotation = Quaternion(-0.0146405, -0.0187557, 0.0313062, 0.999227)
40bones/22/rotation = Quaternion(0.155842, 0.00461602, -0.0101422, 0.987719)
41bones/23/rotation = Quaternion(-0.0133974, -0.000793479, 0.00273881, 0.999906)
42bones/24/rotation = Quaternion(-0.00209429, 0.0025717, -0.00834407, 0.99996)
110bones/23/rotation = Quaternion(-0.0133977, -0.000793498, 0.00273888, 0.999906)
111bones/24/rotation = Quaternion(-0.00209431, 0.00257172, -0.00834415, 0.99996)
43112bones/26/rotation = Quaternion(0.118904, 0.0306709, -0.0560406, 0.990848)
44bones/27/rotation = Quaternion(-0.0133916, -0.00270688, 0.00650435, 0.999885)
45bones/28/rotation = Quaternion(0.000326481, -0.00915114, 0.0211574, 0.999734)
46bones/30/rotation = Quaternion(0.119319, -0.0143616, 0.0193321, 0.992564)
47bones/31/rotation = Quaternion(-0.014934, 0.0107446, -0.0181569, 0.999666)
48bones/32/rotation = Quaternion(0.0224839, -0.00492407, 0.00846133, 0.999699)
49bones/33/position = Vector3(-0.0210362, 0.147639, 0.0928254)
50bones/33/rotation = Quaternion(-0.574533, 0.380402, 0.372139, 0.621867)
51bones/34/rotation = Quaternion(0.179576, 0.761715, -0.597192, -0.175797)
52bones/34/scale = Vector3(1.00614, 0.987329, 1.00614)
53bones/35/rotation = Quaternion(2.41429e-07, 0.107125, 6.65269e-07, 0.994246)
54bones/36/rotation = Quaternion(0.354933, 0.106348, -0.0400006, 0.927962)
55bones/36/scale = Vector3(0.999974, 0.992113, 1.00818)
56bones/37/rotation = Quaternion(-3.68789e-07, -0.130939, -1.96982e-07, 0.99139)
57bones/38/rotation = Quaternion(-0.31788, -0.130125, 0.265936, 0.900721)
58bones/38/scale = Vector3(0.999582, 1.00204, 0.998397)
59bones/40/rotation = Quaternion(0.152494, -0.0320192, 0.0648276, 0.985656)
60bones/41/rotation = Quaternion(-0.00581815, -0.00169901, 0.00528053, 0.999968)
61bones/42/rotation = Quaternion(0.00656406, 0.00667601, -0.0208095, 0.99974)
62bones/43/rotation = Quaternion(0.178115, -0.150549, 0.337691, 0.911907)
113bones/27/rotation = Quaternion(-0.013392, -0.00270695, 0.00650454, 0.999885)
114bones/28/rotation = Quaternion(0.000326484, -0.00915123, 0.0211577, 0.999734)
115bones/30/rotation = Quaternion(0.119319, -0.0143615, 0.0193321, 0.992564)
116bones/31/rotation = Quaternion(-0.0149339, 0.0107445, -0.0181568, 0.999666)
117bones/32/rotation = Quaternion(0.0224833, -0.00492395, 0.00846113, 0.999699)
118bones/33/position = Vector3(-0.0210362, 0.147372, 0.0929216)
119bones/33/rotation = Quaternion(-0.574533, 0.380401, 0.372139, 0.621867)
120bones/34/rotation = Quaternion(0.178206, 0.761345, -0.598046, -0.175891)
121bones/34/scale = Vector3(1.00597, 0.987432, 1.00597)
122bones/35/rotation = Quaternion(2.3905e-07, 0.10966, 6.66501e-07, 0.993969)
123bones/36/rotation = Quaternion(0.341911, 0.108682, -0.0390558, 0.932609)
124bones/36/scale = Vector3(0.999974, 0.992927, 1.00736)
125bones/37/rotation = Quaternion(-3.68208e-07, -0.129935, -1.96961e-07, 0.991522)
126bones/38/rotation = Quaternion(-0.314978, -0.129064, 0.264728, 0.902247)
127bones/38/scale = Vector3(0.999465, 1.00217, 0.998279)
128bones/40/rotation = Quaternion(0.152494, -0.0320192, 0.0648275, 0.985656)
129bones/41/rotation = Quaternion(-0.0058182, -0.00169902, 0.00528057, 0.999968)
130bones/42/rotation = Quaternion(0.00656411, 0.00667606, -0.0208096, 0.99974)
63131bones/44/rotation = Quaternion(-0.14816, -0.0254828, 0.0646272, 0.98652)
64132bones/45/rotation = Quaternion(-0.0146359, 0.0187393, -0.0313094, 0.999227)
65133bones/47/rotation = Quaternion(0.155842, -0.0046164, 0.0101418, 0.987719)
66bones/48/rotation = Quaternion(-0.0134023, 0.000799693, -0.00273866, 0.999906)
67bones/49/rotation = Quaternion(-0.00209712, -0.00256796, 0.00834444, 0.99996)
68bones/51/rotation = Quaternion(0.118904, -0.0306705, 0.0560406, 0.990848)
69bones/52/rotation = Quaternion(-0.0133973, 0.00271311, -0.00650359, 0.999885)
70bones/53/rotation = Quaternion(0.000341446, 0.00913473, -0.0211586, 0.999734)
134bones/48/rotation = Quaternion(-0.0134026, 0.000799712, -0.00273872, 0.999906)
135bones/49/rotation = Quaternion(-0.00209714, -0.00256799, 0.00834452, 0.99996)
136bones/53/rotation = Quaternion(0.000341449, 0.00913482, -0.0211588, 0.999734)
71137bones/55/rotation = Quaternion(0.119319, 0.0143618, -0.0193322, 0.992564)
72bones/56/rotation = Quaternion(-0.0149347, -0.0107439, 0.0181572, 0.999666)
73bones/57/rotation = Quaternion(0.0224819, 0.00492589, -0.00846129, 0.999699)
74bones/58/position = Vector3(0.177163, -0.0772736, -0.0480337)
75bones/58/rotation = Quaternion(-3.44743e-07, 0.696936, 0.717133, 3.13916e-07)
76bones/59/position = Vector3(-0.177162, -0.0772738, -0.048034)
77bones/59/rotation = Quaternion(-3.44744e-07, 0.696936, 0.717133, 3.13916e-07)
78bones/60/position = Vector3(2.98265e-07, -0.125005, -0.301111)
79bones/60/rotation = Quaternion(0.014281, -4.94438e-07, 7.06192e-09, 0.999898)
80bones/63/rotation = Quaternion(-0.00609892, -0.252388, 0.967118, -0.0307446)
81bones/63/scale = Vector3(1.00878, 0.982467, 1.00878)
82bones/64/rotation = Quaternion(1.04872e-10, -1.38345e-05, 3.77397e-11, 1)
83bones/65/rotation = Quaternion(0.612895, -0.00405541, 0.00261824, 0.790149)
84bones/65/scale = Vector3(1.00045, 0.978185, 1.02198)
85bones/66/rotation = Quaternion(3.82005e-09, -0.00743558, -9.26573e-08, 0.999972)
86bones/67/rotation = Quaternion(-0.648454, -0.00717964, -0.0346838, 0.76043)
87bones/67/scale = Vector3(0.990778, 1.00088, 1.00868)
88bones/69/rotation = Quaternion(0.0182318, -0.646885, 0.75579, 0.0999449)
89bones/69/scale = Vector3(1.00899, 0.982455, 1.00899)
90bones/70/rotation = Quaternion(-2.88015e-08, 0.0226168, 9.96919e-09, 0.999744)
91bones/71/rotation = Quaternion(0.514044, 0.0224068, -0.0137259, 0.857361)
92bones/71/scale = Vector3(1.00085, 0.97754, 1.02233)
93bones/72/rotation = Quaternion(2.25177e-08, 0.00686167, -2.87913e-08, 0.999976)
94bones/73/rotation = Quaternion(-0.19497, 0.0067582, 0.134404, 0.971533)
95bones/73/scale = Vector3(0.992349, 1.01399, 0.993703)
138bones/56/rotation = Quaternion(-0.0149346, -0.0107439, 0.0181571, 0.999666)
139bones/57/rotation = Quaternion(0.0224814, 0.00492577, -0.00846109, 0.999699)
140bones/58/position = Vector3(0.177163, -0.0775409, -0.0479375)
141bones/58/rotation = Quaternion(-3.44743e-07, 0.696936, 0.717133, 3.4553e-07)
142bones/59/position = Vector3(-0.177162, -0.0775411, -0.0479378)
143bones/59/rotation = Quaternion(-3.44744e-07, 0.696936, 0.717133, 3.4553e-07)
144bones/60/position = Vector3(2.97518e-07, -0.125272, -0.301014)
145bones/60/rotation = Quaternion(0.0142813, -4.9445e-07, 7.0621e-09, 0.999898)
146bones/63/rotation = Quaternion(-0.00545264, -0.262396, 0.964565, -0.0270896)
147bones/63/scale = Vector3(1.00951, 0.980962, 1.00951)
148bones/64/rotation = Quaternion(2.8338e-08, -0.0026095, 9.66004e-09, 0.999997)
149bones/65/rotation = Quaternion(0.635927, -0.00310922, 0.00190361, 0.771741)
150bones/65/scale = Vector3(1.00055, 0.976808, 1.02331)
151bones/66/rotation = Quaternion(5.88382e-09, -0.0076667, -9.25636e-08, 0.999971)
152bones/67/rotation = Quaternion(-0.565286, -0.00767686, -0.0273053, 0.824407)
153bones/67/scale = Vector3(0.989904, 1.00448, 1.00603)
154bones/69/rotation = Quaternion(0.0181281, -0.65148, 0.751912, 0.0993692)
155bones/69/scale = Vector3(1.00922, 0.9821, 1.00922)
156bones/70/rotation = Quaternion(-2.8665e-08, 0.023263, 9.11086e-09, 0.999729)
157bones/71/rotation = Quaternion(0.527125, 0.023009, -0.0146543, 0.84935)
158bones/71/scale = Vector3(1.00085, 0.976242, 1.02367)
159bones/72/rotation = Quaternion(2.15633e-08, 0.00702815, -2.83905e-08, 0.999975)
160bones/73/rotation = Quaternion(-0.212118, 0.00687551, 0.135746, 0.967746)
161bones/73/scale = Vector3(0.992242, 1.01384, 0.993809)
96162
97163[node name="SkeletonIK3D" parent="Model/Armature/Skeleton3D" index="2"]
98164target_node = NodePath("../../../../GrapplingHook/IKTarget")
99165
166[node name="AnimationPlayer" parent="Model" index="1"]
167libraries = {
168"": SubResource( "AnimationLibrary_mfbj4" )
169}
170
100171[node name="Sound_Jump" parent="Model" index="2"]
101172transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
102173
……@@ -130,6 +201,11 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2.5)
130201
131202[node name="PlayerDebugUI" parent="." index="7" instance=ExtResource( "5" )]
132203
204[node name="AnimationPlayer" parent="." index="10"]
205libraries = {
206"": SubResource( "AnimationLibrary_jepw0" )
207}
208
133209[connection signal="player_jump" from="Input" to="." method="_on_input_player_jump"]
134210[connection signal="player_mousemotion_event" from="Input" to="." method="_on_input_player_mousemotion_event"]
135211[connection signal="player_move" from="Input" to="." method="_on_input_player_move"]
main.gd +9 -3
……@@ -27,6 +27,12 @@ func getSpawnLocation(bodyNode, mapNode) -> Vector3:
2727 return spawnNode.global_transform.origin
2828
2929func PurgeAllWorldEnvironmentNodes():
30 var worldEnvironments = find_nodes("WorldEnvironment", "", true, false)
31 for i in range(0, worldEnvironments.size() ):
32 worldEnvironments[i].free()
30 var worldEnvironment = get_tree().get_current_scene().get_node("Maps").get_node("map_test").get_node("WorldEnvironment")
31 if(worldEnvironment != null):
32 worldEnvironment.free()
33 worldEnvironment = get_tree().get_current_scene().get_node("Maps").get_node("map_cyber").get_node("WorldEnvironment")
34 if(worldEnvironment != null):
35 worldEnvironment.free()
36 worldEnvironment = get_tree().get_current_scene().get_node("Maps").get_node("map_cyber1").get_node("WorldEnvironment")
37 if(worldEnvironment != null):
38 worldEnvironment.free()