Skip to content

Commit 911ef33

Browse files
committed
Improvements to the main example scene.
1 parent 34ca363 commit 911ef33

File tree

11 files changed

+95
-84
lines changed

11 files changed

+95
-84
lines changed

GodotVisionExample.xcodeproj/project.pbxproj

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,32 @@
1212
DE54EAB62B3C75D500594A05 /* ExampleScenesBrowser.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE54EAB52B3C75D500594A05 /* ExampleScenesBrowser.swift */; };
1313
DE54EABA2B3C75D600594A05 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DE54EAB92B3C75D600594A05 /* Assets.xcassets */; };
1414
DE54EABD2B3C75D600594A05 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DE54EABC2B3C75D600594A05 /* Preview Assets.xcassets */; };
15+
DE89B3362CB80578003265C7 /* Godot_Project in CopyFiles */ = {isa = PBXBuildFile; fileRef = DE89B3352CB80578003265C7 /* Godot_Project */; };
1516
DEEA88FC2CB40AF200A8CD7D /* GodotVisionExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEEA88FB2CB40AF200A8CD7D /* GodotVisionExampleApp.swift */; };
16-
DEF363ED2B57F443005E175D /* Godot_Project in Resources */ = {isa = PBXBuildFile; fileRef = DEF363EC2B57F443005E175D /* Godot_Project */; };
1717
/* End PBXBuildFile section */
1818

19+
/* Begin PBXCopyFilesBuildPhase section */
20+
DE89B3342CB80548003265C7 /* CopyFiles */ = {
21+
isa = PBXCopyFilesBuildPhase;
22+
buildActionMask = 2147483647;
23+
dstPath = "";
24+
dstSubfolderSpec = 7;
25+
files = (
26+
DE89B3362CB80578003265C7 /* Godot_Project in CopyFiles */,
27+
);
28+
runOnlyForDeploymentPostprocessing = 0;
29+
};
30+
/* End PBXCopyFilesBuildPhase section */
31+
1932
/* Begin PBXFileReference section */
2033
DE2A91D22CB55A7900F3548C /* GodotVisionSettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GodotVisionSettingsView.swift; sourceTree = "<group>"; };
2134
DE54EAAC2B3C75D500594A05 /* GodotVisionExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GodotVisionExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
2235
DE54EAB52B3C75D500594A05 /* ExampleScenesBrowser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExampleScenesBrowser.swift; sourceTree = "<group>"; };
2336
DE54EAB92B3C75D600594A05 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2437
DE54EABC2B3C75D600594A05 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
2538
DE54EABE2B3C75D600594A05 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
39+
DE89B3352CB80578003265C7 /* Godot_Project */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Godot_Project; sourceTree = "<group>"; };
2640
DEEA88FB2CB40AF200A8CD7D /* GodotVisionExampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GodotVisionExampleApp.swift; sourceTree = "<group>"; };
27-
DEF363EC2B57F443005E175D /* Godot_Project */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Godot_Project; sourceTree = "<group>"; };
2841
/* End PBXFileReference section */
2942

3043
/* Begin PBXFrameworksBuildPhase section */
@@ -42,7 +55,7 @@
4255
DE54EAA32B3C75D500594A05 = {
4356
isa = PBXGroup;
4457
children = (
45-
DEF363EC2B57F443005E175D /* Godot_Project */,
58+
DE89B3352CB80578003265C7 /* Godot_Project */,
4659
DE54EAAE2B3C75D500594A05 /* GodotVisionExample */,
4760
DE54EAAD2B3C75D500594A05 /* Products */,
4861
);
@@ -88,6 +101,7 @@
88101
DE54EAA92B3C75D500594A05 /* Frameworks */,
89102
DE54EAAA2B3C75D500594A05 /* Resources */,
90103
DE0F24412BC86C0600C09903 /* Run Script */,
104+
DE89B3342CB80548003265C7 /* CopyFiles */,
91105
);
92106
buildRules = (
93107
);
@@ -173,7 +187,7 @@
173187
);
174188
runOnlyForDeploymentPostprocessing = 0;
175189
shellPath = /bin/sh;
176-
shellScript = "#\n# Sign dynamically loaded Godot gdextension .frameworks\n#\nfor i in $(seq 0 $(expr $SCRIPT_INPUT_FILE_COUNT - 1)); do\n inputFileVar=\"SCRIPT_INPUT_FILE_${i}\"\n inputFile=\"${!inputFileVar}\"\n codesign --verbose --force --sign \"${EXPANDED_CODE_SIGN_IDENTITY_NAME}\" \"$inputFile\"\ndone\n";
190+
shellScript = "#\n# Sign dynamically loaded Godot gdextension .frameworks\n#\nfor i in $(seq 0 $(expr $SCRIPT_INPUT_FILE_COUNT - 1)); do\n inputFileVar=\"SCRIPT_INPUT_FILE_${i}\"\n inputFile=\"${!inputFileVar}\"\n echo \"SIGNING.\"\n echo \" EXPANDED_CODE_SIGN_IDENTITY_NAME: '${EXPANDED_CODE_SIGN_IDENTITY_NAME}'\"\n echo \" EXPANDED_CODE_SIGN_IDENTITY: '${EXPANDED_CODE_SIGN_IDENTITY}'\"\n echo \"Signing file '$inputFile'\"\n codesign --verbose --force --sign \"${EXPANDED_CODE_SIGN_IDENTITY}\" \"$inputFile\"\ndone\n";
177191
};
178192
/* End PBXShellScriptBuildPhase section */
179193

@@ -347,7 +361,7 @@
347361
);
348362
LIBRARY_SEARCH_PATHS = "$(inherited)";
349363
MARKETING_VERSION = 1.0;
350-
PRODUCT_BUNDLE_IDENTIFIER = vision.godot.Example;
364+
PRODUCT_BUNDLE_IDENTIFIER = vision.godot.examples;
351365
PRODUCT_NAME = "$(TARGET_NAME)";
352366
SUPPORTED_PLATFORMS = "xros xrsimulator";
353367
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -381,7 +395,7 @@
381395
);
382396
LIBRARY_SEARCH_PATHS = "$(inherited)";
383397
MARKETING_VERSION = 1.0;
384-
PRODUCT_BUNDLE_IDENTIFIER = vision.godot.Example;
398+
PRODUCT_BUNDLE_IDENTIFIER = vision.godot.examples;
385399
PRODUCT_NAME = "$(TARGET_NAME)";
386400
SUPPORTED_PLATFORMS = "xros xrsimulator";
387401
SWIFT_EMIT_LOC_STRINGS = YES;
Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,32 @@
11
{
2-
"originHash" : "fb7a72ac1664fff8cbdb406661f97217a01f64a6ae7341d91ed5b11def041c6c",
32
"pins" : [
43
{
5-
"identity" : "godotvision",
4+
"identity" : "swift-docc-plugin",
65
"kind" : "remoteSourceControl",
7-
"location" : "https://github.com/kevinw/GodotVision.git",
6+
"location" : "https://github.com/swiftlang/swift-docc-plugin",
87
"state" : {
9-
"branch" : "main",
10-
"revision" : "c64db9822c318ddc5c0754424fd957e2900fdb25"
8+
"revision" : "85e4bb4e1cd62cec64a4b8e769dcefdf0c5b9d64",
9+
"version" : "1.4.3"
1110
}
1211
},
1312
{
14-
"identity" : "swift-syntax",
13+
"identity" : "swift-docc-symbolkit",
1514
"kind" : "remoteSourceControl",
16-
"location" : "https://github.com/swiftlang/swift-syntax",
15+
"location" : "https://github.com/swiftlang/swift-docc-symbolkit",
1716
"state" : {
18-
"revision" : "2bc86522d115234d1f588efe2bcb4ce4be8f8b82",
19-
"version" : "510.0.3"
17+
"revision" : "b45d1f2ed151d057b54504d653e0da5552844e34",
18+
"version" : "1.0.0"
2019
}
2120
},
2221
{
23-
"identity" : "swiftgodot",
24-
"kind" : "remoteSourceControl",
25-
"location" : "https://github.com/multijam/SwiftGodot",
26-
"state" : {
27-
"revision" : "a9753686164b63b8228d3b98389d4326d942be80"
28-
}
29-
},
30-
{
31-
"identity" : "swiftgodotkit",
22+
"identity" : "swift-syntax",
3223
"kind" : "remoteSourceControl",
33-
"location" : "https://github.com/multijam/SwiftGodotKit",
24+
"location" : "https://github.com/swiftlang/swift-syntax",
3425
"state" : {
35-
"revision" : "526ae902f84c1604d30680d8198c09fdfa566848"
26+
"revision" : "2bc86522d115234d1f588efe2bcb4ce4be8f8b82",
27+
"version" : "510.0.3"
3628
}
3729
}
3830
],
39-
"version" : 3
31+
"version" : 2
4032
}

GodotVisionExample/ExampleScenesBrowser.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ struct ExampleScenesBrowser: View {
5353
Label("Reload", systemImage: "arrow.clockwise.circle")
5454
}
5555
Button { withAnimation { showSettings.toggle() } } label: {
56-
Label("Settings", systemImage: "gear")
57-
}
56+
Label(showSettings ? "Settings" : "", systemImage: "gear")
57+
}.transition(.scale)
58+
5859
if showSettings {
5960
GodotVisionSettingsView(godotVision: godotVision)
61+
.transition(.slide)
6062
}
6163
}.padding().glassBackgroundEffect()
6264
}
@@ -66,7 +68,8 @@ struct ExampleScenesBrowser: View {
6668
.onChange(of: selectedScene) { _, sceneResourcePath in
6769
godotVision.changeSceneToFile(atResourcePath: sceneResourcePath)
6870
}
69-
.ornament(visibility: .automatic, attachmentAnchor: .scene(.leading), contentAlignment: .center) {
71+
.background {
72+
//.ornament(visibility: .automatic, attachmentAnchor: .scene(.leading), contentAlignment: .center) {
7073
// Show a tab bar on the left allowing the user to select example scenes.
7174
TabView(selection: $selectedScene) {
7275
ForEach(exampleScenes, id: \.resourcePath) { (label, systemImage, resourcePath) in

GodotVisionExample/GodotVisionExampleApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ struct GodotVisionExampleApp: App {
1616
// Note: visionOS will silently clamp to volume size if set above or below limits
1717
// max for all dimensions is 1.98
1818
// min for all dimensions is 0.24
19-
let VOLUME_SIZE = simd_double3(1.8, 1.0, 1.5)
19+
let VOLUME_SIZE = simd_double3(1.62, 0.9, 1.35)
2020

Godot_Project/addons/godot_vision/GodotVision_autoload.gd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ class_name GodotVision_autoload
44
@onready var share_play: SharePlay = $SharePlay
55
var scene_tree: SceneTree
66

7+
78
func running_on_vision():
8-
return OS.get_name() == "iOS"
9+
return OS.get_name() == "iOS" # TODO: godot will eventually report the correct OS here :)
910

1011
func _enter_tree():
1112
if !running_on_vision():
@@ -18,7 +19,7 @@ func _exit_tree():
1819
scene_tree = null
1920

2021
func _on_node_added(node: Node):
21-
if node.has_signal("spatial_drag"):
22+
if node.has_signal("spatial_drag"):
2223
var col := node as CollisionObject3D
2324
if col:
2425
_simulate_godot_vision_drag_signal(node)

Godot_Project/examples/hello/example_godot_vision_scene.tscn

Lines changed: 22 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
[gd_scene load_steps=32 format=3 uid="uid://vts2xl0t0xub"]
1+
[gd_scene load_steps=31 format=3 uid="uid://vts2xl0t0xub"]
22

33
[ext_resource type="PackedScene" uid="uid://biunegs8tkvn0" path="res://addons/godot_vision/VisionVolumeCamera.tscn" id="1_3lu4e"]
4+
[ext_resource type="Script" path="res://test_delete_me.gd" id="1_whf6r"]
45
[ext_resource type="Script" path="res://examples/common/scripts/Rotater.gd" id="2_32yj7"]
5-
[ext_resource type="PackedScene" uid="uid://bb6s0wxfewce6" path="res://examples/hello/prefabs/tower_enemy.tscn" id="3_ywgnt"]
66
[ext_resource type="Texture2D" uid="uid://bmd0x5t1c2b3i" path="res://examples/hello/textures/checker.jpg" id="4_v0jkp"]
77
[ext_resource type="Script" path="res://examples/common/scripts/play_sound_button.gd" id="5_lq6td"]
88
[ext_resource type="AudioStream" uid="uid://xrv22x52g14l" path="res://examples/hello/sound/moo.mp3" id="6_3x8lp"]
@@ -16,24 +16,19 @@
1616
[ext_resource type="PackedScene" uid="uid://uqr4hswv6d2g" path="res://examples/kenney_platformer/objects/platform_grass_large_round.tscn" id="14_g2l2r"]
1717
[ext_resource type="PackedScene" uid="uid://c8up71en5djgm" path="res://examples/kenney_platformer/objects/platform_falling.tscn" id="15_3bhpv"]
1818
[ext_resource type="PackedScene" uid="uid://dfpisimsgf5ce" path="res://examples/kenney_platformer/objects/coin.tscn" id="16_g0bc0"]
19+
[ext_resource type="PackedScene" uid="uid://cnymdajj1vsqm" path="res://examples/kenney_platformer/objects/platform.tscn" id="17_5m72r"]
1920
[ext_resource type="PackedScene" uid="uid://dy017k58p20sk" path="res://examples/kenney_platformer/objects/cloud.tscn" id="17_iiyjx"]
2021

22+
[sub_resource type="BoxShape3D" id="BoxShape3D_exuxr"]
23+
size = Vector3(15.84, 8.8, 13.2)
24+
2125
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_53i7p"]
2226
albedo_color = Color(1, 0.603922, 1, 1)
2327

2428
[sub_resource type="TextMesh" id="TextMesh_14eta"]
2529
material = SubResource("StandardMaterial3D_53i7p")
2630
text = "Hello from Godot"
2731

28-
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dbryu"]
29-
albedo_texture = ExtResource("4_v0jkp")
30-
uv1_scale = Vector3(3, 3, 3)
31-
32-
[sub_resource type="BoxMesh" id="BoxMesh_u4h1h"]
33-
material = SubResource("StandardMaterial3D_dbryu")
34-
35-
[sub_resource type="BoxShape3D" id="BoxShape3D_ttl84"]
36-
3732
[sub_resource type="BoxShape3D" id="BoxShape3D_5oa15"]
3833
size = Vector3(1.5, 1, 1)
3934

@@ -69,9 +64,14 @@ material = SubResource("StandardMaterial3D_27pdl")
6964

7065
[node name="Example GodotVision Scene" type="Node3D"]
7166
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0050149, -0.00658166, 0.00135791)
67+
script = ExtResource("1_whf6r")
7268

7369
[node name="VisionVolumeCamera" parent="." instance=ExtResource("1_3lu4e")]
7470

71+
[node name="CollisionShape3D" parent="VisionVolumeCamera" index="0"]
72+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.05989)
73+
shape = SubResource("BoxShape3D_exuxr")
74+
7575
[node name="Text Mesh" type="MeshInstance3D" parent="."]
7676
transform = Transform3D(10.009, 0, 0, 0, 10.009, 0, 0, 0, 10.009, 0, 0.539946, -0.496924)
7777
mesh = SubResource("TextMesh_14eta")
@@ -80,20 +80,8 @@ script = ExtResource("2_32yj7")
8080
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
8181
transform = Transform3D(0.688506, 0.382906, -0.615907, -4.30062e-16, 0.849257, 0.527979, 0.72523, -0.363517, 0.584719, 0, 0, 0)
8282

83-
[node name="character" parent="." instance=ExtResource("3_ywgnt")]
84-
transform = Transform3D(-4.37114e-08, 3.48787e-16, 1, 3.48787e-16, 1, -3.48787e-16, -1, 3.48787e-16, -4.37114e-08, 2.08165e-12, 1.30854, 2.08165e-12)
85-
86-
[node name="StaticBody3D" type="StaticBody3D" parent="."]
87-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00369835, -3.60079, 0.00676847)
88-
89-
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"]
90-
mesh = SubResource("BoxMesh_u4h1h")
91-
92-
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
93-
shape = SubResource("BoxShape3D_ttl84")
94-
9583
[node name="Play Sound Button" type="StaticBody3D" parent="."]
96-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.20155, -1.90392, -0.700861)
84+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.6105, -3.76052, -0.694833)
9785
collision_mask = 0
9886
input_capture_on_drag = true
9987
script = ExtResource("5_lq6td")
@@ -128,22 +116,6 @@ transform = Transform3D(1.97583, 0, 0, 0, 1.97583, 0, 0, 0, 1.97583, 0, 0, 0.603
128116
mesh = SubResource("TextMesh_yuig5")
129117
script = ExtResource("9_quqbi")
130118

131-
[node name="Drag Me Button2" type="AnimatableBody3D" parent="."]
132-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.75171, -1.90392, -0.700861)
133-
collision_mask = 0
134-
script = ExtResource("8_acynk")
135-
136-
[node name="CollisionShape3D" type="CollisionShape3D" parent="Drag Me Button2"]
137-
shape = SubResource("BoxShape3D_5oa15")
138-
139-
[node name="MeshInstance3D" type="MeshInstance3D" parent="Drag Me Button2"]
140-
mesh = SubResource("BoxMesh_rfpgq")
141-
142-
[node name="Label" type="MeshInstance3D" parent="Drag Me Button2"]
143-
transform = Transform3D(1.97583, 0, 0, 0, 1.97583, 0, 0, 0, 1.97583, 0, 0, 0.603814)
144-
mesh = SubResource("TextMesh_yuig5")
145-
script = ExtResource("9_quqbi")
146-
147119
[node name="Magnify Me Button" type="AnimatableBody3D" parent="."]
148120
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.62592, -1.90392, -0.700861)
149121
collision_mask = 0
@@ -195,27 +167,29 @@ script = ExtResource("12_rdyhc")
195167
target = NodePath("..")
196168

197169
[node name="Player" parent="." node_paths=PackedStringArray("view") instance=ExtResource("13_py3sj")]
198-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.36301, 0, 0)
170+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
199171
view = NodePath("../VisionVolumeCamera")
200172

201173
[node name="platform-grass-large-round" parent="." instance=ExtResource("14_g2l2r")]
202-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.40172, -3.35376, 0.662678)
174+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.87243, -3.35376, 0.66343)
203175

204176
[node name="platform-falling" parent="." instance=ExtResource("15_3bhpv")]
205177
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.34123, -3.42223, -3.65213)
206178

207179
[node name="platform-falling2" parent="." instance=ExtResource("15_3bhpv")]
208180
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.21409, -3.42223, 4.60199)
209181

210-
[node name="platform-falling3" parent="." instance=ExtResource("15_3bhpv")]
211-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.43583, -3.42223, 0.285123)
212-
213182
[node name="coin" parent="." instance=ExtResource("16_g0bc0")]
214-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.51046, -2.17635, 0.436899)
183+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.35514, -2.0356, -3.60906)
215184

216185
[node name="cube" parent="." instance=ExtResource("17_iiyjx")]
217-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.48395, 0.00658166, -2.2926)
186+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.51429, 0.00658166, -2.2926)
187+
188+
[node name="platform" parent="." instance=ExtResource("17_5m72r")]
189+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -3, 0)
190+
script = null
218191

219192
[connection signal="input_event" from="Play Sound Button" to="Play Sound Button" method="_on_input_event"]
220193
[connection signal="spatial_drag" from="Drag Me Button" to="Drag Me Button/Label" method="_on_drag_me_button_spatial_drag"]
221-
[connection signal="spatial_drag" from="Drag Me Button2" to="Drag Me Button2/Label" method="_on_drag_me_button_spatial_drag"]
194+
195+
[editable path="VisionVolumeCamera"]

Godot_Project/examples/hello/prefabs/character_meshes.tscn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[sub_resource type="GDScript" id="GDScript_6e1ac"]
66
script/source = "extends Node3D
77
@onready var animation_player = $AnimationPlayer
8-
98
"
109

1110
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_uw7sq"]

Godot_Project/examples/hello/prefabs/tower_enemy.tscn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ script = ExtResource("1_de4vf")
2222
shape = SubResource("CapsuleShape3D_tglj6")
2323

2424
[node name="character_meshes" parent="." instance=ExtResource("2_digwm")]
25+
transform = Transform3D(-3.61999e-06, 3.48788e-16, 1, 3.48787e-16, 1, -3.48787e-16, -1, 3.48786e-16, -3.61999e-06, 0, 0, 0)
2526
script = null

Godot_Project/examples/kenney_platformer/objects/player.tscn

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
[gd_scene load_steps=9 format=3 uid="uid://dl2ed4gkybggf"]
1+
[gd_scene load_steps=10 format=3 uid="uid://dl2ed4gkybggf"]
22

33
[ext_resource type="Script" path="res://examples/kenney_platformer/scripts/player.gd" id="1_ffboj"]
44
[ext_resource type="PackedScene" uid="uid://c0e27836xgmhi" path="res://examples/kenney_platformer/objects/character.tscn" id="2_nero3"]
55
[ext_resource type="Texture2D" uid="uid://8ggihh27mlrr" path="res://examples/kenney_platformer/sprites/blob_shadow.png" id="3_0c7wt"]
6+
[ext_resource type="PackedScene" uid="uid://kwottvmkrb6w" path="res://examples/hello/models/godot_logo/scene.gltf" id="3_vhu60"]
67
[ext_resource type="ArrayMesh" uid="uid://deu06eho4c74" path="res://examples/kenney_platformer/meshes/dust.res" id="4_mvhqy"]
78
[ext_resource type="AudioStream" uid="uid://cydjn1ct3hps2" path="res://examples/kenney_platformer/sounds/walking.ogg" id="5_ics1s"]
89

@@ -33,6 +34,30 @@ shape = SubResource("CapsuleShape3D_gdq8c")
3334

3435
[node name="Character" parent="." instance=ExtResource("2_nero3")]
3536

37+
[node name="root" parent="Character/character" index="0"]
38+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.039768, 9.02389e-17)
39+
40+
[node name="leg-left" parent="Character/character/root" index="0"]
41+
transform = Transform3D(1, 0, 0, 0, 0.998477, -0.0551715, 0, 0.0551715, 0.998477, 0.125, 0.183805, -0.0447526)
42+
43+
[node name="leg-right" parent="Character/character/root" index="1"]
44+
transform = Transform3D(1, 0, 0, 0, 0.998477, 0.0551715, 0, -0.0551715, 0.998477, -0.125, 0.178716, -0.00518778)
45+
46+
[node name="torso" parent="Character/character/root" index="2"]
47+
transform = Transform3D(0.99988, 0.000675873, 0.0154848, -0.000535728, 0.999958, -0.00905285, -0.0154903, 0.00904347, 0.999838, -1.80478e-15, 0.17625, -0.02375)
48+
49+
[node name="arm-left" parent="Character/character/root/torso" index="0"]
50+
transform = Transform3D(0.732734, 0.680509, -0.00293125, -0.680509, 0.732739, 0.00124445, 0.0029947, 0.0010829, 0.999995, 0.3, 0.175, 0)
51+
52+
[node name="arm-right" parent="Character/character/root/torso" index="1"]
53+
transform = Transform3D(0.732734, -0.680509, 0.00293125, 0.680509, 0.732739, 0.00124445, -0.0029947, 0.0010829, 0.999995, -0.3, 0.1195, 0)
54+
55+
[node name="antenna" parent="Character/character/root/torso" index="2"]
56+
transform = Transform3D(1, 0, 0, 0, 0.999588, 0.0286574, 0, -0.0286574, 0.999588, 0, 0.6, 0)
57+
58+
[node name="Godot_Head" parent="Character/character/root/torso" index="3" instance=ExtResource("3_vhu60")]
59+
transform = Transform3D(0.229981, 8.52303e-05, -0.00295384, 5.66202e-05, 0.229735, 0.0110371, 0.00295453, -0.011037, 0.229716, -0.00472002, 0.303365, 0.360322)
60+
3661
[node name="Shadow" type="Decal" parent="."]
3762
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.9, 0)
3863
size = Vector3(1, 2, 1)

0 commit comments

Comments
 (0)