Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Adjust world scale so it's less frightning.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchirls committed Mar 8, 2017
1 parent 0862f33 commit cd5447d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ window.WebVRConfig = {
};

const CHARACTER_SCALE = 1.5;
const WORLD_SHRINK_SCALE = 1 / 10;
const EDIT_WORLD_SCALE = 1 / 10;
const PLAY_WORLD_SCALE = 1 / 3;
const STAGE_HEIGHT = 1; // 1 for adults; 0.25 for kids? todo: adjustable

const THREE = window.THREE = require('three');
Expand Down Expand Up @@ -398,7 +399,7 @@ function updateEditingState() {
/*
3D Scene adjustments for editing
*/
const worldScale = isEditing ? WORLD_SHRINK_SCALE : 1;
const worldScale = isEditing ? EDIT_WORLD_SCALE : PLAY_WORLD_SCALE;
world.scale.set(worldScale, worldScale, worldScale);

// todo: adjust this for kids!!
Expand Down

0 comments on commit cd5447d

Please sign in to comment.