80 lines
3.2 KiB
Text
80 lines
3.2 KiB
Text
[gd_scene load_steps=9 format=2]
|
|
|
|
[ext_resource path="res://functional/ChargingStation.gd" type="Script" id=1]
|
|
[ext_resource path="res://functional/Charger.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://Audio/SFX_NearbyCharging.wav" type="AudioStream" id=3]
|
|
[ext_resource path="res://Audio/SFX_StationCharging.wav" type="AudioStream" id=4]
|
|
[ext_resource path="res://Audio/SFX_StationDocking.wav" type="AudioStream" id=5]
|
|
|
|
[sub_resource type="BoxShape" id=1]
|
|
extents = Vector3( 0.5, 0.3, 0.25 )
|
|
|
|
[sub_resource type="BoxShape" id=2]
|
|
extents = Vector3( 0.3, 0.64, 0.3 )
|
|
|
|
[sub_resource type="BoxShape" id=3]
|
|
extents = Vector3( 0.066, 0.3, 0.29 )
|
|
|
|
[node name="ChargingStation" type="Area"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="DetectionShape" type="CollisionShape" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, -0.5 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Charger1" parent="." instance=ExtResource( 2 )]
|
|
|
|
[node name="StaticBody" type="StaticBody" parent="."]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.64, -1.38 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="CollisionShape2" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 0.491861, 0, -0.870673, 0, 1, 0, 0.870673, 0, 0.491861, -0.506887, 0.3, -1.03898 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="CollisionShape3" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 0.808647, 0, -0.588293, 0, 1, 0, 0.588293, 0, 0.808647, -0.908246, 0.3, -0.680364 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="CollisionShape4" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 0.983019, 0, -0.183505, 0, 1, 0, 0.183505, 0, 0.983019, -1.12063, 0.3, -0.186044 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="CollisionShape5" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.17254, 0.3, 0.375283 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="CollisionShape6" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 0.491861, 0, 0.870673, 0, 1, 0, -0.870673, 0, 0.491861, 0.507, 0.3, -1.039 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="CollisionShape7" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 0.808647, 0, 0.588293, 0, 1, 0, -0.588293, 0, 0.808647, 0.908, 0.3, -0.68 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="CollisionShape8" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 0.983019, 0, 0.183505, 0, 1, 0, -0.183505, 0, 0.983019, 1.121, 0.3, -0.186 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="CollisionShape9" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.173, 0.3, 0.375 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="Sounds" type="Node" parent="."]
|
|
|
|
[node name="NearbyCharging" type="AudioStreamPlayer3D" parent="Sounds"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.12257, 0.213231 )
|
|
stream = ExtResource( 3 )
|
|
unit_db = 9.0
|
|
|
|
[node name="StationCharging" type="AudioStreamPlayer3D" parent="Sounds"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.12257, 0.213231 )
|
|
stream = ExtResource( 4 )
|
|
unit_db = 12.0
|
|
|
|
[node name="StationDocking" type="AudioStreamPlayer3D" parent="Sounds"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.12257, 0.213231 )
|
|
stream = ExtResource( 5 )
|
|
unit_db = 12.0
|