Skip to content

Commit b42f90d

Browse files
committed
fix custom wall heights
1 parent f5636b4 commit b42f90d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/components/beat-generator.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ AFRAME.registerComponent('beat-generator', {
270270

271271
el.setAttribute('wall', wallObj);
272272

273+
// Handle mapping extensions wall format.
273274
if (this.mappingExtensions) {
274275
const typeValue = wall._type - RIDICULOUS_MAP_EX_CONSTANT;
275276
let height = Math.round(typeValue / 1000);
@@ -286,7 +287,7 @@ AFRAME.registerComponent('beat-generator', {
286287
0.001
287288
);
288289
startHeight = roundToNearest(
289-
normalize(startHeight, WALL_START_BASE, WALL_START_MAX, 0, 2),
290+
normalize(startHeight, WALL_START_BASE, WALL_START_MAX, 0, 1.3),
290291
0.01
291292
);
292293

0 commit comments

Comments
 (0)