Skip to content

Commit 2e19507

Browse files
authored
improve example (playcanvas#7739)
1 parent e12b522 commit 2e19507

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/src/examples/sound/positional.example.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ assetListLoader.load(() => {
106106
const entity = new pc.Entity();
107107

108108
// add sound component
109-
entity.addComponent('sound');
109+
entity.addComponent('sound', {
110+
maxDistance: 9
111+
});
110112

111113
// add footsteps slot
112114
entity.sound.addSlot('footsteps', {

0 commit comments

Comments
 (0)