Skip to content

Commit 995f396

Browse files
committed
Pre-pxlNav package only
Backup commit prior to stripping all `pxlNav` dev `./Public` and `./Source` Stripping site to only static-pages gh-pages `./docs` -Collider added to switchSpace
1 parent 07f8cfe commit 995f396

File tree

6 files changed

+412
-501
lines changed

6 files changed

+412
-501
lines changed

Build/pxlNav.min.js

Lines changed: 97 additions & 122 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Build/pxlRooms/CampfireEnvironment/CampfireEnvironment.js

Lines changed: 69 additions & 94 deletions
Large diffs are not rendered by default.

Build/pxlRooms/FieldEnvironment/FieldEnvironment.js

Lines changed: 111 additions & 109 deletions
Large diffs are not rendered by default.

Build/pxlRooms/SaltFlatsEnvironment/SaltFlatsEnvironment.js

Lines changed: 65 additions & 90 deletions
Large diffs are not rendered by default.

Build/pxlRooms/VoidEnvironment/VoidEnvironment.js

Lines changed: 61 additions & 86 deletions
Large diffs are not rendered by default.

docs/js/pxlNavLoader_switchSpace.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ const enableStaticCamera = false;
6464
// Options are - OFF, VAPOR
6565
const skyHaze = pxlEnums.SKY_HAZE.VAPOR;
6666

67+
// Collision Detection Grid
68+
// Collision objects are split into a grid for faster collision detection
69+
// gridSize - The size of the grid
70+
// gridReference - Grid scene reference threshold to scale `gridSize`
71+
const collisionScale = {
72+
'gridSize' : 100,
73+
'gridReference' : 1000
74+
};
6775

6876

6977
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- //
@@ -80,6 +88,7 @@ const skyHaze = pxlEnums.SKY_HAZE.VAPOR;
8088
let pxlNavOptions = Object.assign({},pxlOptions);
8189
pxlNavOptions.verbose = verbose;
8290
pxlNavOptions.antiAliasing = antiAliasing;
91+
pxlNavOptions.collisionScale = collisionScale;
8392
pxlNavOptions.pxlRoomRoot = pxlRoomRootPath;
8493
pxlNavOptions.staticCamera = enableStaticCamera;
8594
pxlNavOptions.skyHaze = skyHaze;

0 commit comments

Comments
 (0)