Skip to content

Commit

Permalink
WIP physics added
Browse files Browse the repository at this point in the history
  • Loading branch information
disasteroftheuniverse committed Jan 2, 2020
1 parent ea832a4 commit a02a0fa
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 19 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@
\ \| | | | '_ \ / _ | '__// / | | | |/ _ / __| __|
_\ | |_| | |_) | __| | / \_/ /| |_| | __\__ | |_
\__/\__,_| .__/ \___|_| \___,_\ \__,_|\___|___/\__|
|_|
|
| |_|
├── <b>assets</b>/
│ ├── hands.ma
│ └── hands.fbx
├── <b>components</b>/
│ ├── aframe-extra-collection.js
│ ├── aframe-google-poly.js
│ ├── aframe-oculus-quest-hands.js
│ └── aframe-locomote-controls.js
│ ├── superquest-extras-collection.js
│ ├── superquest-google-poly.js
│ ├── superquest-hands.js
│ ├── superquest-portals.js
│ ├── superquest-shader-extras.js
│ ├── superquest-utils.js
│ └── superquest-teleporter-controls.js
└── <b>physics</b>/
├── physics-lite.js
└── physics-lite.worker.js
├── superquest-physics-lite.js
└── superquest-physics-lite.worker.js
</pre>

## Installation
Expand Down
2 changes: 1 addition & 1 deletion dist/SuperQuest.full.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/SuperQuest.slim.min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/SuperQuest.standalone.min.js

This file was deleted.

2 changes: 2 additions & 0 deletions dist/physics-lite.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/superquest-physics-lite.worker.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lite-physics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('./src/physics/superquest-physics-lite');
3 changes: 3 additions & 0 deletions slim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*jshint esversion: 8*/
require('./src/components/superquest-utils');
require('./src/components/superquest-hands');
2 changes: 1 addition & 1 deletion src/physics/superquest-physics-lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

//const ComponentEmitter = require('component-emitter');
//const StateMachine = require('javascript-state-machine');
const PhysicsWorker = require('./aframe-physics-lite.worker');
const PhysicsWorker = require('./superquest-physics-lite.worker');

module.exports = {
system: AFRAME.registerSystem('physics', {
Expand Down
11 changes: 5 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
mode: 'production',
entry: {
//'SuperQuest.full': path.join(__dirname, 'index'),
'physics-lite': path.join(__dirname, 'slim'),
'SuperQuest.slim': path.join(__dirname, 'slim'),
'SuperQuest.full': path.join(__dirname, 'index'),
'SuperQuest.slim': path.join(__dirname, 'index'),
'SuperQuest.standalone': path.join(__dirname, 'index'),
},
output: {
path: __dirname + '/dist',
Expand Down Expand Up @@ -46,7 +47,7 @@ module.exports = {
options: {
inline: true,
fallback: true,
name: '[name].[hash].js'
name: '[name].min.js'
}
},
},
Expand All @@ -62,15 +63,13 @@ module.exports = {
minimizer: [
new TerserPlugin({
extractComments: 'all',
//exclude: /[\\/]angular[\\/]/, adb pull This PC\Quest\Internal shared storage\Oculus\VideoShots\com.oculus.vrshell-20190920-054804.mp4 C:\Users\ppinh\Desktop
// parallel: true,
terserOptions: {
drop_console: false,
ecma: undefined,
warnings: false,
parse: {},
compress: {},
mangle: true, // Note `mangle.properties` is `false` by default.
mangle: true,
module: true,
output: null,
toplevel: false,
Expand Down

0 comments on commit a02a0fa

Please sign in to comment.