|
@@ -4,19 +4,20 @@
|
|
[ext_resource path="res://component/entity/wheel/Wheel.gd" type="Script" id=2]
|
|
[ext_resource path="res://component/entity/wheel/Wheel.gd" type="Script" id=2]
|
|
|
|
|
|
[sub_resource type="PhysicsMaterial" id=2]
|
|
[sub_resource type="PhysicsMaterial" id=2]
|
|
|
|
+rough = true
|
|
bounce = 0.9
|
|
bounce = 0.9
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
radius = 33.1812
|
|
radius = 33.1812
|
|
|
|
|
|
[node name="Wheel" type="RigidBody2D"]
|
|
[node name="Wheel" type="RigidBody2D"]
|
|
-mass = 0.1
|
|
|
|
|
|
+mass = 0.25
|
|
physics_material_override = SubResource( 2 )
|
|
physics_material_override = SubResource( 2 )
|
|
angular_damp = 0.0
|
|
angular_damp = 0.0
|
|
script = ExtResource( 2 )
|
|
script = ExtResource( 2 )
|
|
min_linear_speed = 200
|
|
min_linear_speed = 200
|
|
-max_linear_speed = 400
|
|
|
|
-max_angular_speed = 25.132
|
|
|
|
|
|
+max_linear_speed = 325
|
|
|
|
+max_angular_speed = 18.85
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 1 )
|
|
shape = SubResource( 1 )
|
|
@@ -27,4 +28,5 @@ texture = ExtResource( 1 )
|
|
|
|
|
|
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
|
|
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
|
|
rect = Rect2( -32, -32, 64, 64 )
|
|
rect = Rect2( -32, -32, 64, 64 )
|
|
|
|
+
|
|
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
|
|
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
|