|
@@ -33,7 +33,6 @@ class SfxPlayer:
|
|
|
Get the volume that a sound should be played at if it is
|
|
Get the volume that a sound should be played at if it is
|
|
|
localized at this node. We compute this wrt the camera
|
|
localized at this node. We compute this wrt the camera
|
|
|
"""
|
|
"""
|
|
|
- import math
|
|
|
|
|
d = node.getDistance(base.cam)
|
|
d = node.getDistance(base.cam)
|
|
|
if d > self.cutoffDistance:
|
|
if d > self.cutoffDistance:
|
|
|
volume = 0
|
|
volume = 0
|