-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCar.tscn
89 lines (68 loc) · 3 KB
/
Car.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
[gd_scene load_steps=9 format=2]
[ext_resource path="res://VehicleBody.gd" type="Script" id=1]
[sub_resource type="PhysicsMaterial" id=1]
[sub_resource type="BoxShape" id=2]
margin = 0.001
extents = Vector3( 2, 2, 1 )
[sub_resource type="CubeMesh" id=3]
[sub_resource type="Gradient" id=4]
[sub_resource type="GradientTexture" id=5]
gradient = SubResource( 4 )
[sub_resource type="SpatialMaterial" id=6]
albedo_color = Color( 0.192157, 0.411765, 0.811765, 1 )
albedo_texture = SubResource( 5 )
[sub_resource type="CylinderMesh" id=7]
material = SubResource( 6 )
[node name="Spatial" type="Spatial"]
[node name="VehicleBody" type="VehicleBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0613096, 0.0295606, -0.221572 )
physics_material_override = SubResource( 1 )
continuous_cd = true
contact_monitor = true
engine_force = 517.17
script = ExtResource( 1 )
[node name="CollisionShape" type="CollisionShape" parent="VehicleBody"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 1, -0.062, 1.42965, 0 )
shape = SubResource( 2 )
[node name="Camera" type="Camera" parent="VehicleBody"]
transform = Transform( -1, 2.99003e-08, -8.21506e-08, 0, 0.939693, 0.34202, 8.74228e-08, 0.34202, -0.939693, 0, 2.92965, -4 )
fov = 86.4004
[node name="MeshInstance" type="MeshInstance" parent="VehicleBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.48665, 0 )
mesh = SubResource( 3 )
material/0 = null
[node name="rearLeft" type="VehicleWheel" parent="VehicleBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0.68165, -1 )
use_as_traction = true
use_as_steering = true
suspension_travel = 1.0
suspension_stiffness = 5.0
[node name="CSGMesh2" type="CSGMesh" parent="VehicleBody/rearLeft"]
transform = Transform( -2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 0, 0, 0 )
mesh = SubResource( 7 )
[node name="frontRight" type="VehicleWheel" parent="VehicleBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0.68165, 1 )
use_as_traction = true
use_as_steering = true
suspension_travel = 1.0
suspension_stiffness = 5.0
[node name="CSGMesh" type="CSGMesh" parent="VehicleBody/frontRight"]
transform = Transform( -2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 0, 0, 0 )
mesh = SubResource( 7 )
[node name="rearRight" type="VehicleWheel" parent="VehicleBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0.68165, -1 )
use_as_traction = true
use_as_steering = true
suspension_travel = 1.0
suspension_stiffness = 5.0
[node name="CSGMesh2" type="CSGMesh" parent="VehicleBody/rearRight"]
transform = Transform( -2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 0, 0, 0 )
mesh = SubResource( 7 )
[node name="frontLeft" type="VehicleWheel" parent="VehicleBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -0.526243, 1 )
use_as_traction = true
suspension_travel = 1.0
suspension_stiffness = 5.0
[node name="CSGMesh3" type="CSGMesh" parent="VehicleBody/frontLeft"]
transform = Transform( -2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 0, 1.20789, 0 )
mesh = SubResource( 7 )