chore: simplified conditions&adjusted skid blending
This commit is contained in:
parent
7fbb87eaa3
commit
4152128332
1 changed files with 3 additions and 3 deletions
|
|
@ -231,7 +231,7 @@ func _enter() -> int:
|
|||
blackboard.ground_ray.force_raycast_update()
|
||||
var wall_normal_y : float = blackboard.hang_ray.get_collision_normal().y
|
||||
var edge_distance : float = blackboard.hang_ray.get_collision_point().distance_to(blackboard.hang_ray.global_position)
|
||||
if wall_normal_y > 0.9 and body.is_on_wall() and blackboard.get_ground_distance() > edge_distance:
|
||||
if wall_normal_y > 0.9 and body.is_on_wall() and blackboard.get_ground_distance() > (1.0 + edge_distance):
|
||||
timeout = true
|
||||
return Success
|
||||
return Fail
|
||||
|
|
@ -444,8 +444,8 @@ script = SubResource("GDScript_i825w")
|
|||
default_blend_time = 30.0
|
||||
full_speed = 10.0
|
||||
min_skid_speed = 8.0
|
||||
skid_blend_speed_in = 6.0
|
||||
skid_blend_speed_out = 3.0
|
||||
skid_blend_speed_in = 10.0
|
||||
skid_blend_speed_out = 1.5
|
||||
jump_to_fall_speed = 2.0
|
||||
air_blend_speed = 50.0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue