godot_rl_Racer / vehicle.tscn
edbeeching's picture
edbeeching HF staff
Upload folder using huggingface_hub
e22408d verified
[gd_scene load_steps=19 format=3 uid="uid://b1bwg2tirgxwk"]
[ext_resource type="Script" path="res://vehicle.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://c7ev21tk2uwfl" path="res://assets/wheelDefault.tscn" id="2_d8d30"]
[ext_resource type="PackedScene" uid="uid://b6l4n51hs4j2x" path="res://taxi.tscn" id="3_g8gsb"]
[ext_resource type="Script" path="res://CameraSmoother.gd" id="5_gqs5b"]
[ext_resource type="Script" path="res://Meshes.gd" id="5_tvsip"]
[ext_resource type="Script" path="res://Camera3D.gd" id="6_37pkj"]
[ext_resource type="PackedScene" uid="uid://bryvkjw068gsh" path="res://assets/red_convertible.tscn" id="7_7bbdy"]
[ext_resource type="PackedScene" uid="uid://btbb8iwulg14y" path="res://assets/green_jeep.tscn" id="8_5mx7q"]
[ext_resource type="PackedScene" uid="uid://ba5f17vqo2op" path="res://assets/firetruck.tscn" id="9_e5umt"]
[ext_resource type="PackedScene" uid="uid://ig7b453158tn" path="res://assets/police.tscn" id="9_xtctw"]
[ext_resource type="PackedScene" uid="uid://bw5xmatek7g7x" path="res://assets/delivery.tscn" id="10_s5nnp"]
[ext_resource type="PackedScene" uid="uid://c7v2h8ye43n4q" path="res://assets/garbageTruck.tscn" id="11_pjbe1"]
[ext_resource type="PackedScene" uid="uid://x4bpkxih2cfc" path="res://assets/hatchbackSports.tscn" id="12_keoic"]
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd" id="14_qlofu"]
[ext_resource type="PackedScene" uid="uid://bs0osbn6djn0i" path="res://arrow_3d.tscn" id="15_irtpm"]
[ext_resource type="Script" path="res://AIController3D.gd" id="16_3hqsi"]
[sub_resource type="PhysicsMaterial" id="1"]
friction = 0.5
[sub_resource type="BoxShape3D" id="7"]
size = Vector3(0.954078, 0.576755, 2.32662)
[node name="Vehicle" type="VehicleBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00169557, 0.222867, -0.0955184)
collision_layer = 2
center_of_mass_mode = 1
physics_material_override = SubResource("1")
can_sleep = false
script = ExtResource("1")
[node name="FrontLeftWheel" type="VehicleWheel3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.573678, 0.115169, 1.05129)
use_as_traction = true
use_as_steering = true
wheel_roll_influence = 0.4
wheel_radius = 0.25
wheel_friction_slip = 1.0
suspension_stiffness = 40.0
damping_compression = 0.88
[node name="wheelDefault" parent="FrontLeftWheel" instance=ExtResource("2_d8d30")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
[node name="BackLeftWheel" type="VehicleWheel3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.573678, 0.115169, -0.632342)
use_as_traction = true
wheel_roll_influence = 0.4
wheel_radius = 0.25
wheel_friction_slip = 1.0
suspension_stiffness = 40.0
damping_compression = 0.88
[node name="wheelDefault2" parent="BackLeftWheel" instance=ExtResource("2_d8d30")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
[node name="FrontRightWheel" type="VehicleWheel3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.573678, 0.115169, 1.05129)
use_as_traction = true
use_as_steering = true
wheel_roll_influence = 0.4
wheel_radius = 0.25
wheel_friction_slip = 1.0
suspension_stiffness = 40.0
damping_compression = 0.88
[node name="wheelDefault5" parent="FrontRightWheel" instance=ExtResource("2_d8d30")]
[node name="BackRightWheel" type="VehicleWheel3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.573678, 0.115169, -0.632342)
use_as_traction = true
wheel_roll_influence = 0.4
wheel_radius = 0.25
wheel_friction_slip = 1.0
suspension_stiffness = 40.0
damping_compression = 0.88
[node name="wheelDefault4" parent="BackRightWheel" instance=ExtResource("2_d8d30")]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4366, 0.0774262)
shape = SubResource("7")
[node name="Node3D" type="Node3D" parent="."]
[node name="CameraSmoother" type="Node3D" parent="Node3D"]
transform = Transform3D(-0.999762, -0.0158309, 0.015023, 0, 0.688355, 0.725374, -0.0218244, 0.725201, -0.688191, 0, 6.02, -6.197)
visible = false
script = ExtResource("5_gqs5b")
[node name="Node" type="Node" parent="."]
[node name="Camera3D" type="Camera3D" parent="Node"]
transform = Transform3D(-0.999762, -0.0158308, 0.0150229, 0, 0.688355, 0.725374, -0.0218244, 0.725201, -0.688191, -0.00169557, 6.24287, -6.29252)
script = ExtResource("6_37pkj")
target_path = NodePath("../..")
offset = Vector3(-0.00169557, 6.24287, -6.29252)
[node name="Meshes" type="Node3D" parent="."]
script = ExtResource("5_tvsip")
[node name="RedConvertible" parent="Meshes" instance=ExtResource("7_7bbdy")]
transform = Transform3D(-0.6, 0, -2.33649e-07, 0, 0.6, 0, 2.33649e-07, 0, -0.6, 0, 0.417889, 0.240061)
visible = false
[node name="Car" parent="Meshes" instance=ExtResource("3_g8gsb")]
transform = Transform3D(-0.6, 0, -2.33649e-07, 0, 0.6, 0, 2.33649e-07, 0, -0.6, 0, 0.48034, 0.239897)
visible = false
[node name="GreenJeep" parent="Meshes" instance=ExtResource("8_5mx7q")]
transform = Transform3D(-0.6, 0, -2.33649e-07, 0, 0.6, 0, 2.33649e-07, 0, -0.6, 0, 0.444449, 0.241243)
visible = false
[node name="PoliceCar" parent="Meshes" instance=ExtResource("9_xtctw")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.182332, 0.199664)
visible = false
[node name="FireTruck" parent="Meshes" instance=ExtResource("9_e5umt")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.137417, 0.0877788)
[node name="Delivery" parent="Meshes" instance=ExtResource("10_s5nnp")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.17896, 0.394227)
visible = false
[node name="GarbageTruck" parent="Meshes" instance=ExtResource("11_pjbe1")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.150346, 0.522479)
visible = false
[node name="Hatchback" parent="Meshes" instance=ExtResource("12_keoic")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.149111, 0.206981)
visible = false
[node name="Arrow3D" parent="." instance=ExtResource("15_irtpm")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
visible = false
[node name="RayCastSensor3D" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.984808, 0.173648, 0, -0.173648, 0.984808, 0, 0.77426, 1.22044)
script = ExtResource("14_qlofu")
n_rays_width = 12.0
ray_length = 80.0
cone_width = 90.0
cone_height = 30.0
[node name="@node_0 0@46787" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-51.4973, -17.3152, 58.7215)
[node name="@node_0 1@46788" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-52.2964, -10.4421, 59.6326)
[node name="@node_0 2@46789" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-52.6975, -3.48955, 60.0899)
[node name="@node_0 3@46790" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-52.6975, 3.48955, 60.0899)
[node name="@node_0 4@46791" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-52.2964, 10.4421, 59.6326)
[node name="node_0 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-51.4973, 17.3152, 58.7215)
[node name="@node_1 0@46792" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-43.3921, -17.3152, 64.9408)
[node name="@node_1 1@46793" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-44.0654, -10.4421, 65.9485)
[node name="@node_1 2@46794" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-44.4033, -3.48955, 66.4543)
[node name="@node_1 3@46795" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-44.4033, 3.48955, 66.4543)
[node name="@node_1 4@46796" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-44.0654, 10.4421, 65.9485)
[node name="node_1 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-43.3921, 17.3152, 64.9408)
[node name="@node_2 0@46797" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-34.5444, -17.3152, 70.0491)
[node name="@node_2 1@46798" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-35.0804, -10.4421, 71.136)
[node name="@node_2 2@46799" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-35.3494, -3.48955, 71.6815)
[node name="@node_2 3@46800" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-35.3494, 3.48955, 71.6815)
[node name="@node_2 4@46801" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-35.0804, 10.4421, 71.136)
[node name="node_2 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-34.5444, 17.3152, 70.0491)
[node name="@node_3 0@46802" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-25.1056, -17.3152, 73.9587)
[node name="@node_3 1@46803" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-25.4952, -10.4421, 75.1063)
[node name="@node_3 2@46804" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-25.6907, -3.48955, 75.6823)
[node name="@node_3 3@46805" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-25.6907, 3.48955, 75.6823)
[node name="@node_3 4@46806" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-25.4952, 10.4421, 75.1063)
[node name="node_3 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-25.1056, 17.3152, 73.9587)
[node name="@node_4 0@46807" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-15.2373, -17.3152, 76.6029)
[node name="@node_4 1@46808" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-15.4737, -10.4421, 77.7916)
[node name="@node_4 2@46809" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-15.5924, -3.48955, 78.3881)
[node name="@node_4 3@46810" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-15.5924, 3.48955, 78.3881)
[node name="@node_4 4@46811" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-15.4737, 10.4421, 77.7916)
[node name="node_4 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-15.2373, 17.3152, 76.6029)
[node name="@node_5 0@46812" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-5.10823, -17.3152, 77.9365)
[node name="@node_5 1@46813" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-5.18749, -10.4421, 79.1458)
[node name="@node_5 2@46814" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-5.22727, -3.48955, 79.7527)
[node name="@node_5 3@46815" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-5.22727, 3.48955, 79.7527)
[node name="@node_5 4@46816" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-5.18749, 10.4421, 79.1458)
[node name="node_5 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(-5.10823, 17.3152, 77.9365)
[node name="@node_6 0@46817" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(5.10823, -17.3152, 77.9365)
[node name="@node_6 1@46818" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(5.18749, -10.4421, 79.1458)
[node name="@node_6 2@46819" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(5.22727, -3.48955, 79.7527)
[node name="@node_6 3@46820" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(5.22727, 3.48955, 79.7527)
[node name="@node_6 4@46821" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(5.18749, 10.4421, 79.1458)
[node name="node_6 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(5.10823, 17.3152, 77.9365)
[node name="@node_7 0@46822" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(15.2373, -17.3152, 76.6029)
[node name="@node_7 1@46823" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(15.4737, -10.4421, 77.7916)
[node name="@node_7 2@46824" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(15.5924, -3.48955, 78.3881)
[node name="@node_7 3@46825" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(15.5924, 3.48955, 78.3881)
[node name="@node_7 4@46826" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(15.4737, 10.4421, 77.7916)
[node name="node_7 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(15.2373, 17.3152, 76.6029)
[node name="@node_8 0@46827" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(25.1056, -17.3152, 73.9587)
[node name="@node_8 1@46828" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(25.4952, -10.4421, 75.1063)
[node name="@node_8 2@46829" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(25.6907, -3.48955, 75.6823)
[node name="@node_8 3@46830" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(25.6907, 3.48955, 75.6823)
[node name="@node_8 4@46831" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(25.4952, 10.4421, 75.1063)
[node name="node_8 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(25.1056, 17.3152, 73.9587)
[node name="@node_9 0@46832" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(34.5444, -17.3152, 70.0491)
[node name="@node_9 1@46833" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(35.0804, -10.4421, 71.136)
[node name="@node_9 2@46834" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(35.3494, -3.48955, 71.6815)
[node name="@node_9 3@46835" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(35.3494, 3.48955, 71.6815)
[node name="@node_9 4@46836" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(35.0804, 10.4421, 71.136)
[node name="node_9 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(34.5444, 17.3152, 70.0491)
[node name="@node_10 0@46837" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(43.3921, -17.3152, 64.9408)
[node name="@node_10 1@46838" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(44.0654, -10.4421, 65.9485)
[node name="@node_10 2@46839" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(44.4033, -3.48955, 66.4543)
[node name="@node_10 3@46840" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(44.4033, 3.48955, 66.4543)
[node name="@node_10 4@46841" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(44.0654, 10.4421, 65.9485)
[node name="node_10 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(43.3921, 17.3152, 64.9408)
[node name="@node_11 0@46842" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(51.4973, -17.3152, 58.7215)
[node name="@node_11 1@46843" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(52.2964, -10.4421, 59.6326)
[node name="@node_11 2@46844" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(52.6975, -3.48955, 60.0899)
[node name="@node_11 3@46845" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(52.6975, 3.48955, 60.0899)
[node name="@node_11 4@46846" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(52.2964, 10.4421, 59.6326)
[node name="node_11 5" type="RayCast3D" parent="RayCastSensor3D"]
target_position = Vector3(51.4973, 17.3152, 58.7215)
[node name="AIController3D" type="Node3D" parent="."]
script = ExtResource("16_3hqsi")
reset_after = 10000