small racing game im working on
Diffstat (limited to 'assets/blocks/platform_turn_1x1.tscn')
| -rw-r--r-- | assets/blocks/platform_turn_1x1.tscn | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/assets/blocks/platform_turn_1x1.tscn b/assets/blocks/platform_turn_1x1.tscn new file mode 100644 index 0000000..16786f1 --- /dev/null +++ b/assets/blocks/platform_turn_1x1.tscn @@ -0,0 +1,35 @@ +[gd_scene load_steps=7 format=3 uid="uid://dtmmpkwtlvovq"] + +[ext_resource type="Script" path="res://classes/platform.gd" id="1_8xamw"] +[ext_resource type="ArrayMesh" uid="uid://dgxce0yrvqmg5" path="res://assets/meshes/platforms/turn.tres" id="2_6mnla"] +[ext_resource type="PackedScene" uid="uid://bfe6ps3cjf37j" path="res://assets/blocks/walls/turn_wall.tscn" id="2_pgjox"] +[ext_resource type="PackedScene" uid="uid://lq13suvwdu6g" path="res://assets/blocks/walls/flat_wall.tscn" id="3_w86ma"] +[ext_resource type="PackedScene" uid="uid://urgqw6yoy4f5" path="res://ui/editor/cameras/topdown_cam.tscn" id="4_rehd8"] + +[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_qno1p"] +points = PackedVector3Array(-5, 0, -5, -5, 1, -5, -4.15818, 0, -5, -5, 0, 5, -5, 1, 5, -4.15818, 1, -5, -2.85532, 0, -4.90701, 5, 0, 5, 5, 1, 5, -2.85532, 1, -4.90701, -1.5789, 0, -4.62999, 5, 0, 4.1572, 5, 1, 4.1572, -1.5789, 1, -4.62999, -0.354346, 0, -4.17287, 4.90603, 0, 2.85435, 4.90603, 1, 2.85435, -0.354346, 1, -4.17287, 0.792874, 0, -3.5464, 4.62901, 0, 1.57792, 4.62901, 1, 1.57792, 0.792874, 1, -3.5464, 1.83829, 0, -2.76331, 4.17189, 0, 0.353367, 4.17189, 1, 0.353367, 1.83829, 1, -2.76331, 2.76233, 0, -1.83927, 3.54542, 0, -0.793853, 3.54542, 1, -0.793853, 2.76233, 1, -1.83927) + +[node name="platform_turn" type="StaticBody3D" node_paths=PackedStringArray("mesh")] +collision_mask = 0 +input_ray_pickable = false +script = ExtResource("1_8xamw") +mesh = NodePath("mesh") +wall_mode = 7 +west_wall_scene = ExtResource("2_pgjox") +west_wall_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) +east_wall_scene = ExtResource("3_w86ma") +east_wall_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0) +north_wall_scene = null +north_wall_transform = Transform3D(0, 0, -1, 0, 1, 0, 1, 0, 0, 0, 0, 0) +south_wall_scene = ExtResource("3_w86ma") +south_wall_transform = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, 0, 0, 0) + +[node name="mesh" type="MeshInstance3D" parent="."] +mesh = ExtResource("2_6mnla") + +[node name="collision" type="CollisionShape3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0) +visible = false +shape = SubResource("ConvexPolygonShape3D_qno1p") + +[node name="camera" parent="." instance=ExtResource("4_rehd8")] |