bullet physics seem better, need to figure out collisions and collision points

This commit is contained in:
derek
2024-10-23 11:32:18 -05:00
parent 9e644fe79f
commit d5300779a0
4 changed files with 35 additions and 29 deletions

View File

@@ -200,14 +200,14 @@ func _physics_process(delta):
#initiate fast movement -- may be done with this block
#change sounds with speed
if moving_fast:
var wind_volume = clamp( velocity.length() - 20 ,-20,10)
var wind_volume = clamp( velocity.length() - 20 ,-80,10)
ear_wind.volume_db = wind_volume
#reset at apex
#cache fastest speed
if abs(velocity.y) > moving_fast_top_speed:
moving_fast_top_speed = abs(velocity.y)
#print("TOP SPEED = " + str(moving_fast_top_speed))
#Land Sound
if velocity.y < .1 and self.is_on_floor() and moving_fast == true:
print("LAND SOUND")