-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeliveryTruck.tscn
121 lines (97 loc) · 5.3 KB
/
DeliveryTruck.tscn
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[gd_scene load_steps=11 format=3 uid="uid://dmmh6pklckqiy"]
[ext_resource type="PackedScene" uid="uid://cufgffkx701er" path="res://DeliveryTruck.dae" id="1"]
[ext_resource type="PackedScene" uid="uid://bn8gu5ynent4k" path="res://Wheel.dae" id="2"]
[ext_resource type="Script" path="res://DeliveryTruck.gd" id="3"]
[ext_resource type="Script" path="res://Mountable.gd" id="4"]
[ext_resource type="Script" path="res://ItemEquipable.gd" id="5"]
[sub_resource type="ConvexPolygonShape3D" id="1"]
points = PackedVector3Array(0.393413, 0, -1.03858, 0.393413, 0, 1.03858, 0.399741, 1.85861, 0, 0.399741, 1.81221, -0.593708, 0.399741, 1.5815, -0.78341, 0.399741, 0.553853, -1.01093, 2.89368, 0, -0.960099, 0.399741, 0.553853, 1.01073, 0.399741, 1.5815, 0.783206, 0.399741, 1.81221, 0.593504, 2.89368, 0, 0.959895, 0.797074, 1.85861, 0, 0.797074, 1.81221, -0.593708, 1.27192, 1.5815, -0.778327, 1.9635, 0.941769, -0.912724, 2.85677, 0.383367, -0.92899, 3.05003, 0.383367, 0, 3.08694, 0, 0, 1.27192, 1.5815, 0.778123, 2.85677, 0.383367, 0.928787, 1.9635, 0.941769, 0.912521, 0.797074, 1.81221, 0.593504, 1.38292, 1.5815, 0, 2.80404, 0.895735, 0, 2.71308, 0.863167, -0.613837, 2.47895, 0.795663, -0.889342, 2.71308, 0.863167, 0.613634, 2.47895, 0.795663, 0.889138)
[sub_resource type="BoxShape3D" id="3"]
size = Vector3(3.28926, 1.75125, 2.23274)
[sub_resource type="BoxShape3D" id="4"]
size = Vector3(1.27686, 1.56652, 2)
[sub_resource type="BoxShape3D" id="5"]
size = Vector3(1.7822, 2.23182, 2.55144)
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_gcaff"]
radius = 1.10159
height = 3.83957
[node name="Node3D" type="VehicleBody3D"]
mass = 800.0
center_of_mass_mode = 1
center_of_mass = Vector3(0, 0.01, 0)
can_sleep = false
script = ExtResource("3")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1.1441e-07, 0, -1, 0, 0.811568, 0, 0.872468, 0, 1.31134e-07, 0, 0.635813, 0.110831)
shape = SubResource("1")
[node name="CollisionShape3" type="CollisionShape3D" parent="."]
transform = Transform3D(1.31134e-07, 0, -1, 0, 1, 0, 1, 0, 1.31134e-07, -1.63813e-07, 1.49736, -1.2492)
shape = SubResource("3")
[node name="WheelFL" type="VehicleWheel3D" parent="."]
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 1.02208, 0.321579, 2.38349)
use_as_traction = true
use_as_steering = true
wheel_radius = 0.35
wheel_rest_length = 0.3
wheel_friction_slip = 6.0
suspension_stiffness = 12.0
suspension_max_force = 12000.0
[node name="Wheel" parent="WheelFL" instance=ExtResource("2")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -0.147286, 0, 0)
[node name="WheelBL" type="VehicleWheel3D" parent="."]
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 1.02208, 0.321579, -1.36178)
use_as_traction = true
wheel_radius = 0.35
wheel_rest_length = 0.3
wheel_friction_slip = 6.0
suspension_stiffness = 12.0
suspension_max_force = 12000.0
[node name="Wheel" parent="WheelBL" instance=ExtResource("2")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -0.147286, 0, 0)
[node name="WheelFR" type="VehicleWheel3D" parent="."]
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, -1.02574, 0.321579, 2.38349)
use_as_traction = true
use_as_steering = true
wheel_radius = 0.35
wheel_rest_length = 0.3
wheel_friction_slip = 6.0
suspension_stiffness = 12.0
suspension_max_force = 12000.0
[node name="Wheel" parent="WheelFR" instance=ExtResource("2")]
transform = Transform3D(1.31134e-07, 0, -1, 0, 1, 0, 1, 0, 1.31134e-07, 0.155435, 0, 0)
[node name="WheelBR" type="VehicleWheel3D" parent="."]
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, -1.026, 0.321797, -1.362)
use_as_traction = true
wheel_radius = 0.35
wheel_rest_length = 0.3
wheel_friction_slip = 6.0
suspension_stiffness = 12.0
suspension_max_force = 12000.0
[node name="Wheel" parent="WheelBR" instance=ExtResource("2")]
transform = Transform3D(1.31134e-07, 0, -1, 0, 1, 0, 1, 0, 1.31134e-07, 0.158051, 0, -1.19209e-07)
[node name="DeliveryTruck" parent="." instance=ExtResource("1")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0.228427, 0)
[node name="DoorBounds" type="Area3D" parent="."]
transform = Transform3D(1.31134e-07, 0, -1, 0, 1, 0, 1, 0, 1.31134e-07, 1.45493e-07, 0, 1.1095)
collision_layer = 65536
collision_mask = 65536
script = ExtResource("4")
mountPoint = NodePath("..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="DoorBounds"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00286388, 1.29665, 0)
shape = SubResource("4")
[node name="TrunkBounds" type="Area3D" parent="."]
process_mode = 4
transform = Transform3D(1.31134e-07, 0, -1, 0, 1, 0, 1, 0, 1.31134e-07, -3.15035e-07, 0, -2.40239)
visible = false
collision_layer = 65536
collision_mask = 65536
script = ExtResource("5")
[node name="CollisionShape3D" type="CollisionShape3D" parent="TrunkBounds"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.261911, 1.38688, 0)
shape = SubResource("5")
[node name="MountOffPoint" type="Node3D" parent="."]
transform = Transform3D(1.31134e-07, 0, -1, 0, 1, 0, 1, 0, 1.31134e-07, -1.05941, 0, 0.921959)
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 2.05981, -0.937604)
shape = SubResource("CapsuleShape3D_gcaff")