Public repository for MUR pre alpha
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

100 lines
3.4 KiB

[gd_scene load_steps=7 format=2]
[ext_resource path="res://scripts/player/FullPlayer.gd" type="Script" id=1]
[ext_resource path="res://scripts/player/raceCar.gd" type="Script" id=2]
[ext_resource path="res://assets/raceCar/body.obj" type="ArrayMesh" id=3]
[ext_resource path="res://assets/raceCar/wheel.obj" type="ArrayMesh" id=4]
[sub_resource type="SpatialMaterial" id=1]
albedo_color = Color( 0.14902, 0.14902, 0.14902, 1 )
[sub_resource type="BoxShape" id=2]
extents = Vector3( 0.05, 0.03, 0.13 )
[node name="FullPlayer" type="Spatial"]
script = ExtResource( 1 )
[node name="raceCar" type="VehicleBody" parent="."]
script = ExtResource( 2 )
[node name="body" type="MeshInstance" parent="raceCar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.125 )
mesh = ExtResource( 3 )
material/0 = null
material/1 = null
material/2 = null
[node name="wheelBackLeft" type="VehicleWheel" parent="raceCar"]
editor/display_folded = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.061, 0.024, -0.082 )
use_as_traction = true
wheel_radius = 0.028
wheel_rest_length = 0.04
wheel_friction_slip = 1000.0
suspension_travel = 0.04
suspension_stiffness = 100.0
[node name="MeshInstance" type="MeshInstance" parent="raceCar/wheelBackLeft"]
mesh = ExtResource( 4 )
material/0 = SubResource( 1 )
material/1 = null
[node name="wheelBackRight" type="VehicleWheel" parent="raceCar"]
editor/display_folded = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.061, 0.024, -0.082 )
use_as_traction = true
wheel_radius = 0.028
wheel_rest_length = 0.04
wheel_friction_slip = 1000.0
suspension_travel = 0.04
suspension_stiffness = 100.0
[node name="MeshInstance" type="MeshInstance" parent="raceCar/wheelBackRight"]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0 )
mesh = ExtResource( 4 )
material/0 = SubResource( 1 )
material/1 = null
[node name="wheelFrontLeft" type="VehicleWheel" parent="raceCar"]
editor/display_folded = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.061, 0.024, 0.078 )
use_as_steering = true
wheel_radius = 0.028
wheel_rest_length = 0.04
wheel_friction_slip = 1000.0
suspension_travel = 0.04
suspension_stiffness = 100.0
[node name="MeshInstance" type="MeshInstance" parent="raceCar/wheelFrontLeft"]
mesh = ExtResource( 4 )
material/0 = SubResource( 1 )
material/1 = null
[node name="wheelFrontRight" type="VehicleWheel" parent="raceCar"]
editor/display_folded = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.061, 0.024, 0.078 )
use_as_steering = true
wheel_radius = 0.028
wheel_rest_length = 0.04
wheel_friction_slip = 1000.0
suspension_travel = 0.04
suspension_stiffness = 100.0
[node name="MeshInstance" type="MeshInstance" parent="raceCar/wheelFrontRight"]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0 )
mesh = ExtResource( 4 )
material/0 = SubResource( 1 )
material/1 = null
[node name="collision" type="CollisionShape" parent="raceCar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.04, 0.01 )
shape = SubResource( 2 )
[node name="CameraTarget" type="Spatial" parent="raceCar"]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.3, -0.6 )
[node name="ray" type="RayCast" parent="raceCar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.075, 0 )
enabled = true
cast_to = Vector3( 0, -0.2, 0 )
[connection signal="road_entered" from="raceCar" to="." method="_on_raceCar_road_entered"]