diff --git a/assets/Models/windtunnel.blend b/assets/Models/windtunnel.blend new file mode 100644 index 0000000..e9852e1 Binary files /dev/null and b/assets/Models/windtunnel.blend differ diff --git a/assets/Models/windtunnel.blend.import b/assets/Models/windtunnel.blend.import new file mode 100644 index 0000000..db0be3f --- /dev/null +++ b/assets/Models/windtunnel.blend.import @@ -0,0 +1,51 @@ +[remap] + +importer="scene" +importer_version=1 +type="PackedScene" +uid="uid://3qwdeuynioyr" +path="res://.godot/imported/windtunnel.blend-7d4b895f1e50428f176a98982998fe37.scn" + +[deps] + +source_file="res://assets/Models/windtunnel.blend" +dest_files=["res://.godot/imported/windtunnel.blend-7d4b895f1e50428f176a98982998fe37.scn"] + +[params] + +nodes/root_type="" +nodes/root_name="" +nodes/apply_root_scale=true +nodes/root_scale=1.0 +nodes/import_as_skeleton_bones=false +meshes/ensure_tangents=true +meshes/generate_lods=true +meshes/create_shadow_meshes=true +meshes/light_baking=1 +meshes/lightmap_texel_size=0.2 +meshes/force_disable_compression=false +skins/use_named_skins=true +animation/import=true +animation/fps=30 +animation/trimming=false +animation/remove_immutable_tracks=true +animation/import_rest_as_RESET=false +import_script/path="" +_subresources={} +blender/nodes/visible=0 +blender/nodes/active_collection_only=false +blender/nodes/punctual_lights=true +blender/nodes/cameras=true +blender/nodes/custom_properties=true +blender/nodes/modifiers=1 +blender/meshes/colors=false +blender/meshes/uvs=true +blender/meshes/normals=true +blender/meshes/tangents=true +blender/meshes/skins=2 +blender/meshes/export_bones_deforming_mesh_only=false +blender/materials/unpack_enabled=true +blender/materials/export_materials=1 +blender/animation/limit_playback=true +blender/animation/always_sample=true +blender/animation/group_tracks=true diff --git a/assets/Models/windtunnel.blend1 b/assets/Models/windtunnel.blend1 new file mode 100644 index 0000000..0b2be4e Binary files /dev/null and b/assets/Models/windtunnel.blend1 differ diff --git a/scripts/player.gd b/scripts/player.gd index 9d33423..317f278 100644 --- a/scripts/player.gd +++ b/scripts/player.gd @@ -182,8 +182,7 @@ func _physics_process(delta): var wind_volume = clamp( velocity.length() - 20 ,-20,0) ear_wind.volume_db = wind_volume #reset at apex - if abs(velocity.y) < 0: - moving_fast_top_speed = 0.0 + #cache fastest speed if abs(velocity.y) > moving_fast_top_speed: moving_fast_top_speed = abs(velocity.y) @@ -191,7 +190,7 @@ func _physics_process(delta): #Land Sound if velocity.y < .1 and self.is_on_floor() and moving_fast == true: print("LAND SOUND") - var land_volume = clamp( moving_fast_top_speed - 20 ,-20,0) + var land_volume = clamp( moving_fast_top_speed - 20 ,-10,0) land_sound.volume_db = land_volume land_sound.play() ear_wind.stop()