small racing game im working on
Diffstat (limited to 'assets/blocks/platform_diagonal.tscn')
| -rw-r--r-- | assets/blocks/platform_diagonal.tscn | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/assets/blocks/platform_diagonal.tscn b/assets/blocks/platform_diagonal.tscn new file mode 100644 index 0000000..2c6b00a --- /dev/null +++ b/assets/blocks/platform_diagonal.tscn @@ -0,0 +1,32 @@ +[gd_scene load_steps=7 format=3 uid="uid://ceo1o8kfhqnxy"] + +[ext_resource type="Script" path="res://classes/platform.gd" id="1_kratg"] +[ext_resource type="PackedScene" uid="uid://dforj6583ykxh" path="res://assets/blocks/walls/diagonal_wall.tscn" id="2_4a34e"] +[ext_resource type="PackedScene" uid="uid://lq13suvwdu6g" path="res://assets/blocks/walls/flat_wall.tscn" id="3_5esq0"] +[ext_resource type="ArrayMesh" uid="uid://nw0f20urbu50" path="res://assets/meshes/platforms/diagonal.tres" id="4_fgvbp"] +[ext_resource type="PackedScene" uid="uid://cb46aartkefse" path="res://ui/editor/cameras/side_slant_cam.tscn" id="4_ik4ya"] + +[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_ha1t2"] +points = PackedVector3Array(-5, -0.500049, -5, -5, 0.5, -5, 5, -3, -5, -5, -0.500049, 5, -5, 0.5, 5, 5, -2.00029, -5, 5, -3, 5, 5, -2.00029, 5) + +[node name="platform_diagonal" type="StaticBody3D" node_paths=PackedStringArray("mesh")] +collision_mask = 0 +input_ray_pickable = false +script = ExtResource("1_kratg") +mesh = NodePath("mesh") +west_wall_scene = ExtResource("2_4a34e") +west_wall_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) +east_wall_scene = ExtResource("2_4a34e") +east_wall_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0) +north_wall_scene = ExtResource("3_5esq0") +north_wall_transform = Transform3D(0, 0, -1, 0, 1, 0, 1, 0, 0, 0, -5, 0) +south_wall_scene = ExtResource("3_5esq0") +south_wall_transform = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, 0, 0, 0) + +[node name="mesh" type="MeshInstance3D" parent="."] +mesh = ExtResource("4_fgvbp") + +[node name="collision" type="CollisionShape3D" parent="."] +shape = SubResource("ConvexPolygonShape3D_ha1t2") + +[node name="camera" parent="." instance=ExtResource("4_ik4ya")] |