Spatial 2D sound w/ reverb, first attempt
This commit is contained in:
parent
7833a1c756
commit
3ec5a9edf7
17 changed files with 192 additions and 13 deletions
|
@ -52,3 +52,6 @@ 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