From 0f518727c28d3204415db14c7ca0e4f7cb653677 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Thu, 9 Dec 2021 00:52:59 +0100 Subject: working --- scenes/path.tscn | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 scenes/path.tscn (limited to 'scenes/path.tscn') diff --git a/scenes/path.tscn b/scenes/path.tscn new file mode 100644 index 0000000..cd46718 --- /dev/null +++ b/scenes/path.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://models/pointer.obj" type="ArrayMesh" id=1] + +[sub_resource type="SpatialMaterial" id=16] +albedo_color = Color( 1, 0, 0, 1 ) + +[sub_resource type="ConcavePolygonShape" id=17] +data = PoolVector3Array( -1, 1, 1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1, 1, 1, -1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, 1, 1, 1, -1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1, -1, -1, -1, -1 ) + +[node name="path" type="Spatial" groups=["path"]] + +[node name="MeshInstance" type="MeshInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.25, 0 ) +mesh = ExtResource( 1 ) +skeleton = NodePath("") +material/0 = SubResource( 16 ) + +[node name="StaticBody" type="StaticBody" parent="."] +transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0 ) +collision_layer = 2 +collision_mask = 2 + +[node name="CollisionShape" type="CollisionShape" parent="StaticBody"] +shape = SubResource( 17 ) -- cgit v1.2.3-54-g00ecf