diff options
Diffstat (limited to '')
-rw-r--r-- | Main.tscn | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1,10 +1,12 @@ -[gd_scene load_steps=13 format=2] +[gd_scene load_steps=17 format=2] [ext_resource path="res://character/fps_controller/fps_controller.tscn" type="PackedScene" id=1] [ext_resource path="res://ship/ship/ship.tscn" type="PackedScene" id=2] [ext_resource path="res://water/Water.tscn" type="PackedScene" id=3] [ext_resource path="res://Float.tscn" type="PackedScene" id=4] [ext_resource path="res://ship/ship/crate.tscn" type="PackedScene" id=5] +[ext_resource path="res://World.gd" type="Script" id=5] +[ext_resource path="res://Raft.gd" type="Script" id=6] [sub_resource type="BoxShape" id=19] extents = Vector3( 1000, 0.1, 1000 ) @@ -69,6 +71,7 @@ axis_lock_linear_x = true axis_lock_linear_z = true linear_damp = 2.0 angular_damp = 2.0 +script = ExtResource( 6 ) [node name="CollisionShape" type="CollisionShape" parent="ShipRigidBody"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.78898, 0 ) @@ -120,6 +123,19 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 9.77011, -3.30323, -49.022 ) [node name="crates" type="Spatial" parent="."] +[node name="World" type="RigidBody" parent="."] +collision_layer = 0 +collision_mask = 0 +axis_lock_linear_y = true +axis_lock_angular_x = true +axis_lock_angular_y = true +axis_lock_angular_z = true +linear_damp = 0.5 +script = ExtResource( 5 ) + +[node name="CollisionShape" type="CollisionShape" parent="World"] +shape = SubResource( 22 ) + [node name="crate" parent="crates" instance=ExtResource( 5 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.56126, 0 ) |