change driving parameters
This commit is contained in:
parent
3a06f1c02b
commit
e57e35209e
2 changed files with 10 additions and 10 deletions
|
@ -28,7 +28,7 @@ tracks/1/keys = {
|
||||||
"times": PackedFloat32Array(0, 0.966667),
|
"times": PackedFloat32Array(0, 0.966667),
|
||||||
"transitions": PackedFloat32Array(1, 1),
|
"transitions": PackedFloat32Array(1, 1),
|
||||||
"update": 0,
|
"update": 0,
|
||||||
"values": [Color(1, 1, 1, 0), Color(0.446777, 0.446777, 0.446777, 0.568627)]
|
"values": [Color(1, 1, 1, 0), Color(0, 0, 0, 0.635294)]
|
||||||
}
|
}
|
||||||
tracks/2/type = "value"
|
tracks/2/type = "value"
|
||||||
tracks/2/imported = false
|
tracks/2/imported = false
|
||||||
|
@ -162,10 +162,10 @@ anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -483.861
|
offset_left = -480.537
|
||||||
offset_top = -287.132
|
offset_top = -286.765
|
||||||
offset_right = -425.861
|
offset_right = -422.537
|
||||||
offset_bottom = -210.132
|
offset_bottom = -209.765
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
script = ExtResource("2_80mhm")
|
script = ExtResource("2_80mhm")
|
||||||
|
|
|
@ -27,8 +27,8 @@ var friction = -0.5
|
||||||
var drag = -0.0005
|
var drag = -0.0005
|
||||||
var braking = -200
|
var braking = -200
|
||||||
var max_speed_reverse = 100
|
var max_speed_reverse = 100
|
||||||
var slip_speed = 200
|
var slip_speed = 150
|
||||||
var traction_fast = 0.1 #traction when above slip_speed
|
var traction_fast = 0.05 #traction when above slip_speed
|
||||||
var traction_slow = 0.5
|
var traction_slow = 0.5
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ var steering_distance_far_slow=200
|
||||||
var steering_distance_close_slow=20
|
var steering_distance_close_slow=20
|
||||||
|
|
||||||
var steering_speed_fast = 400 #speed for fast steering
|
var steering_speed_fast = 400 #speed for fast steering
|
||||||
var steering_angle_fast = 2 #maximum angle fast speed
|
var steering_angle_fast = 1 #maximum angle fast speed
|
||||||
var steering_distance_far_fast=256
|
var steering_distance_far_fast=256
|
||||||
var steering_distance_close_fast=128
|
var steering_distance_close_fast=128
|
||||||
|
|
||||||
|
@ -96,8 +96,8 @@ func _physics_process(delta: float) -> void:
|
||||||
if ROAD_R_NAME==collision.get_collider().name or ROAD_L_NAME==collision.get_collider().name: #collided with road
|
if ROAD_R_NAME==collision.get_collider().name or ROAD_L_NAME==collision.get_collider().name: #collided with road
|
||||||
velocity/=COLLISION_SLOWDOWN_WALL
|
velocity/=COLLISION_SLOWDOWN_WALL
|
||||||
|
|
||||||
if get_slide_collision_count()>0:
|
#if get_slide_collision_count()>0:
|
||||||
velocity/=2
|
# velocity/=2
|
||||||
#for i in get_slide_collision_count():
|
#for i in get_slide_collision_count():
|
||||||
# var collision = get_slide_collision(i)
|
# var collision = get_slide_collision(i)
|
||||||
# print("Collided with: ", collision.get_collider().name)
|
# print("Collided with: ", collision.get_collider().name)
|
||||||
|
|
Loading…
Reference in a new issue