added simple collision to hallway segments and columns

master
Zac 4 years ago
parent aecc4d6268
commit 905efd1b0c
  1. 9
      _scenes/pieces/column.tscn
  2. 20
      _scenes/pieces/deadend.tscn
  3. 17
      _scenes/pieces/hallway.tscn

@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=9 format=2]
[ext_resource path="res://models/column.gltf" type="PackedScene" id=1]
[ext_resource path="res://textures/grey_stone/greystone_diffuse.png" type="Texture" id=2]
@ -22,8 +22,15 @@ ao_texture = ExtResource( 3 )
ao_on_uv2 = false
ao_texture_channel = 4
[sub_resource type="ConvexPolygonShape" id=2]
points = PoolVector3Array( 0, 3.2167, -0.65306, 0.127406, -3.2167, -0.640512, 0, -3.2167, -0.65306, 0.127406, 3.2167, -0.640512, 0.127406, 3.2167, -0.640512, 0.249915, -3.2167, -0.603349, 0.127406, -3.2167, -0.640512, 0.249915, 3.2167, -0.603349, 0.249915, 3.2167, -0.603349, 0.362821, -3.2167, -0.542999, 0.249915, -3.2167, -0.603349, 0.362821, 3.2167, -0.542999, 0.362821, 3.2167, -0.542999, 0.461783, -3.2167, -0.461783, 0.362821, -3.2167, -0.542999, 0.461783, 3.2167, -0.461783, 0.461783, 3.2167, -0.461783, 0.543, -3.2167, -0.362821, 0.461783, -3.2167, -0.461783, 0.543, 3.2167, -0.362821, 0.543, 3.2167, -0.362821, 0.603349, -3.2167, -0.249915, 0.543, -3.2167, -0.362821, 0.603349, 3.2167, -0.249915, 0.603349, 3.2167, -0.249915, 0.640512, -3.2167, -0.127406, 0.603349, -3.2167, -0.249915, 0.640512, 3.2167, -0.127406, 0.640512, 3.2167, -0.127406, 0.65306, -3.2167, -4.93047e-008, 0.640512, -3.2167, -0.127406, 0.65306, 3.2167, -4.93047e-008, 0.65306, 3.2167, -4.93047e-008, 0.640512, -3.2167, 0.127406, 0.65306, -3.2167, -4.93047e-008, 0.640512, 3.2167, 0.127406, 0.640512, 3.2167, 0.127406, 0.603349, -3.2167, 0.249915, 0.640512, -3.2167, 0.127406, 0.603349, 3.2167, 0.249915, 0.603349, 3.2167, 0.249915, 0.543, -3.2167, 0.362821, 0.603349, -3.2167, 0.249915, 0.543, 3.2167, 0.362821, 0.543, 3.2167, 0.362821, 0.461783, -3.2167, 0.461783, 0.543, -3.2167, 0.362821, 0.461783, 3.2167, 0.461783, 0.461783, 3.2167, 0.461783, 0.362821, -3.2167, 0.543, 0.461783, -3.2167, 0.461783, 0.362821, 3.2167, 0.543, 0.362821, 3.2167, 0.543, 0.249915, -3.2167, 0.603349, 0.362821, -3.2167, 0.543, 0.249915, 3.2167, 0.603349, 0.249915, 3.2167, 0.603349, 0.127406, -3.2167, 0.640512, 0.249915, -3.2167, 0.603349, 0.127406, 3.2167, 0.640512, 0.127406, 3.2167, 0.640512, -2.12794e-007, -3.2167, 0.65306, 0.127406, -3.2167, 0.640512, -2.12794e-007, 3.2167, 0.65306, -2.12794e-007, 3.2167, 0.65306, -0.127406, -3.2167, 0.640511, -2.12794e-007, -3.2167, 0.65306, -0.127406, 3.2167, 0.640511, -0.127406, 3.2167, 0.640511, -0.249915, -3.2167, 0.603349, -0.127406, -3.2167, 0.640511, -0.249915, 3.2167, 0.603349, -0.249915, 3.2167, 0.603349, -0.362821, -3.2167, 0.542999, -0.249915, -3.2167, 0.603349, -0.362821, 3.2167, 0.542999, -0.362821, 3.2167, 0.542999, -0.461783, -3.2167, 0.461783, -0.362821, -3.2167, 0.542999, -0.461783, 3.2167, 0.461783, -0.461783, 3.2167, 0.461783, -0.543, -3.2167, 0.36282, -0.461783, -3.2167, 0.461783, -0.543, 3.2167, 0.36282, -0.543, 3.2167, 0.36282, -0.603349, -3.2167, 0.249915, -0.543, -3.2167, 0.36282, -0.603349, 3.2167, 0.249915, -0.603349, 3.2167, 0.249915, -0.640512, -3.2167, 0.127405, -0.603349, -3.2167, 0.249915, -0.640512, 3.2167, 0.127405, -0.640512, 3.2167, 0.127405, -0.65306, -3.2167, -6.30594e-007, -0.640512, -3.2167, 0.127405, -0.65306, 3.2167, -6.30594e-007, -0.65306, 3.2167, -6.30594e-007, -0.640511, -3.2167, -0.127406, -0.65306, -3.2167, -6.30594e-007, -0.640511, 3.2167, -0.127406, -0.640511, 3.2167, -0.127406, -0.603348, -3.2167, -0.249916, -0.640511, -3.2167, -0.127406, -0.603348, 3.2167, -0.249916, -0.603348, 3.2167, -0.249916, -0.542999, -3.2167, -0.362821, -0.603348, -3.2167, -0.249916, -0.542999, 3.2167, -0.362821, -0.542999, 3.2167, -0.362821, -0.461782, -3.2167, -0.461784, -0.542999, -3.2167, -0.362821, -0.461782, 3.2167, -0.461784, -0.461782, 3.2167, -0.461784, -0.36282, -3.2167, -0.543, -0.461782, -3.2167, -0.461784, -0.36282, 3.2167, -0.543, -0.36282, 3.2167, -0.543, -0.249914, -3.2167, -0.603349, -0.36282, -3.2167, -0.543, -0.249914, 3.2167, -0.603349, -0.945566, 3.50289, -0.945566, 0.684586, 3.00851, -0.684586, -0.684586, 3.00851, -0.684586, 0.945566, 3.50289, -0.945566, -0.249914, 3.2167, -0.603349, -0.127405, -3.2167, -0.640512, -0.249914, -3.2167, -0.603349, -0.127405, 3.2167, -0.640512, -0.127405, 3.2167, -0.640512, 0, -3.2167, -0.65306, -0.127405, -3.2167, -0.640512, 0, 3.2167, -0.65306, -0.945566, 3.50289, 0.945566, -0.684586, 3.00851, -0.684586, -0.684586, 3.00851, 0.684586, -0.945566, 3.50289, -0.945566, 0.945566, 3.50289, -0.945566, 0.684586, 3.00851, 0.684586, 0.684586, 3.00851, -0.684586, 0.945566, 3.50289, 0.945566, 0.945566, 3.50289, 0.945566, -0.684586, 3.00851, 0.684586, 0.684586, 3.00851, 0.684586, -0.945566, 3.50289, 0.945566, 0.684586, 3.00851, 0.684586, -0.684586, 3.00851, -0.684586, 0.684586, 3.00851, -0.684586, -0.684586, 3.00851, 0.684586, -0.684586, -2.82949, -0.684586, 0.945566, -3.32387, -0.945566, -0.945566, -3.32387, -0.945566, 0.684586, -2.82949, -0.684586, 0.684586, -2.82949, -0.684586, 0.945566, -3.32387, 0.945566, 0.945566, -3.32387, -0.945566, 0.684586, -2.82949, 0.684586, -0.684586, -2.82949, 0.684586, -0.945566, -3.32387, -0.945566, -0.945566, -3.32387, 0.945566, -0.684586, -2.82949, -0.684586, 0.684586, -2.82949, 0.684586, -0.945566, -3.32387, 0.945566, 0.945566, -3.32387, 0.945566, -0.684586, -2.82949, 0.684586, -0.684586, -2.82949, 0.684586, 0.684586, -2.82949, -0.684586, -0.684586, -2.82949, -0.684586, 0.684586, -2.82949, 0.684586 )
[node name="column" index="0" instance=ExtResource( 1 )]
[node name="Cylinder" parent="." index="0"]
material/0 = SubResource( 1 )
[node name="StaticBody" type="StaticBody" parent="Cylinder" index="0"]
[node name="CollisionShape" type="CollisionShape" parent="Cylinder/StaticBody" index="0"]
shape = SubResource( 2 )

@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=7 format=2]
[ext_resource path="res://models/deadendv2.gltf" type="PackedScene" id=1]
[ext_resource path="res://assets/ceiling_material.tres" type="Material" id=2]
@ -6,6 +6,9 @@
[ext_resource path="res://assets/floor_material.tres" type="Material" id=4]
[ext_resource path="res://_scenes/pieces/column.tscn" type="PackedScene" id=5]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.282713, 1, 4.24084 )
[node name="deadend" index="0" instance=ExtResource( 1 )]
[node name="ceiling001" parent="." index="0"]
@ -22,3 +25,18 @@ transform = Transform( 1.33034, 0, 0, 0, 1.16516, 0, 0, 0, 1.33034, 3.65142, 3.7
[node name="column2" parent="." index="4" instance=ExtResource( 5 )]
transform = Transform( 1.33034, 0, 0, 0, 1.16516, 0, 0, 0, 1.33034, 3.65142, 3.71428, 3.58174 )
[node name="collision" type="StaticBody" parent="." index="5"]
editor/display_folded = true
[node name="CollisionShape" type="CollisionShape" parent="collision" index="0"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 3.19781, 0 )
shape = SubResource( 1 )
[node name="CollisionShape2" type="CollisionShape" parent="collision" index="1"]
transform = Transform( -4.37114e-008, -4.37114e-008, -1, 4.37114e-008, 1, -4.37114e-008, 1, -4.37114e-008, -4.37114e-008, 0, 3.19781, 4 )
shape = SubResource( 1 )
[node name="CollisionShape3" type="CollisionShape" parent="collision" index="2"]
transform = Transform( -4.37114e-008, -4.37114e-008, -1, 4.37114e-008, 1, -4.37114e-008, 1, -4.37114e-008, -4.37114e-008, 0, 3.19781, -4 )
shape = SubResource( 1 )

@ -1,11 +1,14 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=6 format=2]
[ext_resource path="res://models/hallv2.gltf" type="PackedScene" id=1]
[ext_resource path="res://assets/floor_material.tres" type="Material" id=2]
[ext_resource path="res://assets/wall_material.tres" type="Material" id=3]
[ext_resource path="res://assets/ceiling_material.tres" type="Material" id=4]
[node name="Scene Root" index="0" instance=ExtResource( 1 )]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 4.02299, 1, 0.412802 )
[node name="hallway" index="0" instance=ExtResource( 1 )]
[node name="floor" parent="." index="0"]
material/0 = ExtResource( 2 )
@ -15,3 +18,13 @@ material/0 = ExtResource( 3 )
[node name="ceiling" parent="." index="2"]
material/0 = ExtResource( 4 )
[node name="StaticBody" type="StaticBody" parent="." index="3"]
[node name="CollisionShape" type="CollisionShape" parent="StaticBody" index="0"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, -4 )
shape = SubResource( 1 )
[node name="CollisionShape2" type="CollisionShape" parent="StaticBody" index="1"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 4 )
shape = SubResource( 1 )

Loading…
Cancel
Save