]> Untitled Git - star-foxy.git/blobdiff - player/player.tscn
Initial flight mechanics
[star-foxy.git] / player / player.tscn
index 60631c215cdf4cef97effe58b4c534e9fa8a89cf..7ef0343196ce27e87a38c7aab99ef6378595cf2c 100644 (file)
@@ -1,7 +1,8 @@
-[gd_scene load_steps=8 format=2]
+[gd_scene load_steps=9 format=2]
 
 [ext_resource path="res://model/arwing_wings.material" type="Material" id=1]
 [ext_resource path="res://model/arwing_body.material" type="Material" id=2]
+[ext_resource path="res://player/player.gd" type="Script" id=3]
 
 [sub_resource type="SpatialMaterial" id=1]
 vertex_color_use_as_albedo = true
@@ -52,22 +53,29 @@ surfaces/0 = {
 }
 
 [sub_resource type="BoxShape" id=5]
-extents = Vector3( 3.72203, 0.878147, 2.99408 )
+extents = Vector3( 3.72203, 0.878147, 3.13957 )
 
 [node name="arwing" type="KinematicBody"]
+script = ExtResource( 3 )
 
-[node name="body" type="MeshInstance" parent="."]
+[node name="mesh" type="Spatial" parent="."]
+transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0 )
+
+[node name="body" type="MeshInstance" parent="mesh"]
 mesh = SubResource( 2 )
 material/0 = null
 
-[node name="thrust" type="MeshInstance" parent="."]
+[node name="thrust" type="MeshInstance" parent="mesh"]
 mesh = SubResource( 3 )
 material/0 = null
 
-[node name="wings" type="MeshInstance" parent="."]
+[node name="wings" type="MeshInstance" parent="mesh"]
 mesh = SubResource( 4 )
 material/0 = null
 
 [node name="CollisionShape" type="CollisionShape" parent="."]
-transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.371765, 0.63321 )
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.371765, -0.470031 )
 shape = SubResource( 5 )
+
+[node name="Camera" type="Camera" parent="."]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 13.3084 )