From 8970201ccd8176f41b29640b301273f4b01bb700 Mon Sep 17 00:00:00 2001 From: Willow Behar Date: Mon, 3 Jun 2024 23:52:03 -0500 Subject: [PATCH] Made road piece with collision --- Assets/Objects/road_piece.tscn | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Assets/Objects/road_piece.tscn diff --git a/Assets/Objects/road_piece.tscn b/Assets/Objects/road_piece.tscn new file mode 100644 index 0000000..728a9a0 --- /dev/null +++ b/Assets/Objects/road_piece.tscn @@ -0,0 +1,13 @@ +[gd_scene load_steps=3 format=3 uid="uid://ru1tus7l28vq"] + +[ext_resource type="PackedScene" uid="uid://dpc5x86bvjnb6" path="res://Blender Files/RoadPiece.blend" id="1_84l4q"] + +[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_21f8i"] +data = PackedVector3Array(-3.3779, 0, 2, 3.3779, 0, -2, 3.3779, 0, 2, -3.3779, 0, 2, -3.3779, 0, -2, 3.3779, 0, -2, -3.378, 0, 2, -3.378, 0.0449, -2, -3.378, 0, -2, -3.378, 0, 2, -3.378, 0.0449, 2, -3.378, 0.0449, -2, 3.4471, 0.1688, 2, 3.3981, 0.1325, -2, 3.4471, 0.1688, -2, 3.4471, 0.1688, 2, 3.3981, 0.1325, 2, 3.3981, 0.1325, -2, 3.3981, 0.1325, 2, 3.3778, 0.0449, -2, 3.3981, 0.1325, -2, 3.3981, 0.1325, 2, 3.3778, 0.0449, 2, 3.3778, 0.0449, -2, -3.4472, 0.1688, 2, -5, 0.1688, -2, -3.4472, 0.1688, -2, -3.4472, 0.1688, 2, -5, 0.1688, 2, -5, 0.1688, -2, -3.3983, 0.1325, -2, -3.378, 0.0449, 2, -3.3983, 0.1325, 2, -3.3983, 0.1325, -2, -3.378, 0.0449, -2, -3.378, 0.0449, 2, -3.4472, 0.1688, -2, -3.3983, 0.1325, 2, -3.4472, 0.1688, 2, -3.4472, 0.1688, -2, -3.3983, 0.1325, -2, -3.3983, 0.1325, 2, 3.3778, 0, -2, 3.3778, 0.0449, 2, 3.3778, 0, 2, 3.3778, 0, -2, 3.3778, 0.0449, -2, 3.3778, 0.0449, 2, 3.4471, 0.1688, -2, 5, 0.1688, 2, 3.4471, 0.1688, 2, 3.4471, 0.1688, -2, 5, 0.1688, -2, 5, 0.1688, 2) + +[node name="RoadPiece" instance=ExtResource("1_84l4q")] + +[node name="StaticBody3D" type="StaticBody3D" parent="Plane" index="0"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Plane/StaticBody3D" index="0"] +shape = SubResource("ConcavePolygonShape3D_21f8i")