1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
[gd_scene load_steps=8 format=2]
[ext_resource path="res://scenes/environment/Ladder.gd" type="Script" id=1]
[sub_resource type="ConvexPolygonShape" id=2]
points = PoolVector3Array( 0.5, 0.5, 0.075, 0.5, 0.5, -0.075, -0.5, 0.5, 0.075, 0.5, -0.5, 0.075, 0.5, -0.5, -0.075, -0.5, 0.5, -0.075, -0.5, -0.5, 0.075, -0.5, -0.5, -0.075 )
[sub_resource type="CubeMesh" id=1]
size = Vector3( 1, 1, 0.15 )
[sub_resource type="SpatialMaterial" id=4]
albedo_color = Color( 0.764706, 0.764706, 0.764706, 1 )
[sub_resource type="CubeMesh" id=5]
material = SubResource( 4 )
size = Vector3( 0.9, 1, 0.15 )
[sub_resource type="GDScript" id=3]
resource_name = "adjust_ladder_top"
script/source = "extends Spatial
#top of ladder path is above actual top so that player can easily dismount
func _ready():
transform.origin.y += 0.2 / get_parent().scale.y
"
[sub_resource type="NavigationMesh" id=6]
vertices = PoolVector3Array( -0.5, 0.425, -0.5, -0.5, 0.425, 0.5, 0.5, 0.425, 0.5, 0.5, 0.425, -0.5 )
polygons = [ PoolIntArray( 3, 2, 0 ), PoolIntArray( 0, 2, 1 ) ]
agent_radius = 0.0
[node name="Ladder" type="Spatial"]
script = ExtResource( 1 )
[node name="LadderArea" type="Area" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="LadderArea"]
shape = SubResource( 2 )
[node name="DebugVisMesh" type="MeshInstance" parent="."]
mesh = SubResource( 1 )
[node name="DebugVisMesh2" type="MeshInstance" parent="DebugVisMesh"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.0222434 )
mesh = SubResource( 5 )
skeleton = NodePath("../..")
[node name="Bottom" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0.5 )
[node name="Top" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0.5 )
script = SubResource( 3 )
[node name="NavigationMeshInstance" type="NavigationMeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
navmesh = SubResource( 6 )
[node name="DebugVisMesh" type="MeshInstance" parent="NavigationMeshInstance"]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0 )
mesh = SubResource( 1 )
|