Spatial 2D Audio: improved the reverb effect parameter calculation
This commit is contained in:
parent
3ec5a9edf7
commit
46f5b788a1
5 changed files with 12 additions and 29 deletions
|
@ -52,6 +52,3 @@ func _physics_process(delta: float) -> void:
|
|||
if collider is RigidBody2D:
|
||||
var impulse = -collision.get_normal() * (velocity.length() / collider.mass) * rigidbody_impulse_mult
|
||||
collider.apply_central_impulse(impulse)
|
||||
|
||||
func _ready() -> void:
|
||||
$AudioListener2D.make_current()
|
||||
|
|
Reference in a new issue