diff --git a/AmmoDriver.md b/AmmoDriver.md index be1f4333..09d25787 100644 --- a/AmmoDriver.md +++ b/AmmoDriver.md @@ -25,12 +25,12 @@ The Ammo.js driver provides many features and new functionality that the existin ## Installation -Initial installation is the same as for Cannon.js. See: [Scripts](https://github.com/donmccurdy/aframe-physics-system/blob/master/README.md#installation), then see [Including the Ammo.js Build](#including-the-ammojs-build). +Initial installation is the same as for Cannon.js. See: [Scripts](README.md#installation), then see [Including the Ammo.js Build](#including-the-ammojs-build). ### Including the Ammo.js build Ammo.js is not a dependency of this project. As a result, it must be included into your project manually. Recommended options are: [script tag](#script-tag) or [NPM and Webpack](#npm-and-webpack). -The latest [WebAssembly](https://developer.mozilla.org/en-US/docs/WebAssembly) build is available either via the [Ammo.js github](http://kripken.github.io/ammo.js/builds/ammo.wasm.js) (`http://kripken.github.io/ammo.js/builds/ammo.wasm.js`) or the [Mozilla Reality fork](https://cdn.jsdelivr.net/gh/MozillaReality/ammo.js@8bbc0ea/builds/ammo.wasm.js) (`https://cdn.jsdelivr.net/gh/MozillaReality/ammo.js@8bbc0ea/builds/ammo.wasm.js`) created by the [Mozilla Hubs](https://github.com/mozilla/hubs) team. The latter is especially optimized for use with the Ammo Driver and includes [some functionality](#hacd-and-vhacd) not yet available in the main repository. +The latest [WebAssembly](https://developer.mozilla.org/en-US/docs/WebAssembly) build is available either via the [Ammo.js github](https://kripken.github.io/ammo.js/builds/ammo.wasm.js) (`https://kripken.github.io/ammo.js/builds/ammo.wasm.js`) or the [Mozilla Reality fork](https://cdn.jsdelivr.net/gh/MozillaReality/ammo.js@8bbc0ea/builds/ammo.wasm.js) (`https://cdn.jsdelivr.net/gh/MozillaReality/ammo.js@8bbc0ea/builds/ammo.wasm.js`) created by the [Mozilla Hubs](https://github.com/mozilla/hubs) team. The latter is especially optimized for use with the Ammo Driver and includes [some functionality](#hacd-and-vhacd) not yet available in the main repository. #### Script Tag @@ -39,7 +39,7 @@ This is the easiest way to include Ammo.js in your project and is recommended fo ```html or - + ``` Then, add `aframe-physics-system` itself, also with a script tag: @@ -255,7 +255,7 @@ Any entity with an `ammo-body` component can also have 1 or more `ammo-shape` co - **Cone** (`cone`) – Requires `halfExtents` if using `fit: manual`. Use `cylinderAxis` to change which axis the point of the cone is aligned. - **Hull** (`hull`) – Wraps a model in a convex hull, like a shrink-wrap. Not quite as performant as primitives, but still very fast. - **Hull Approximate Convex Decomposition** (`hacd`) – This is an experimental feature that generates multiple convex hulls to approximate any convex or concave shape. -- **Volumetric Hull Approximate Convex Decomposition** (`vhacd`) – Also experimental, this is `hacd` with a different algorithm. See: http://kmamou.blogspot.com/2014/11/v-hacd-v20-is-here.html for more information. +- **Volumetric Hull Approximate Convex Decomposition** (`vhacd`) – Also experimental, this is `hacd` with a different algorithm. See: https://kmamou.blogspot.com/2014/11/v-hacd-v20-is-here.html for more information. - **Mesh** (`mesh`) – Creates a 1:1 concave collision shape with the triangles of the meshes of the entity. May only be used on `static` bodies. This is the least performant shape, however they can work very well for static environments if the following is observed: - Avoid using meshes with very high triangle density relative to size of convex objects (primitives and hulls) colliding with the mesh. E.g. avoid meshes where an object could collide with dozens or more triangles in a single spot. - Avoid very high poly meshes in general and use mesh decimation (simplification) if possible. diff --git a/CannonDriver.md b/CannonDriver.md index 3ba418ca..a194f310 100644 --- a/CannonDriver.md +++ b/CannonDriver.md @@ -1,6 +1,6 @@ # Cannon Driver -[CANNON.js](http://schteppe.github.io/cannon.js/) is a native JavaScript physics library, which is one of the available choices of driver in aframe-physics-system +[CANNON.js](https://schteppe.github.io/cannon.js/) is a native JavaScript physics library, which is one of the available choices of driver in aframe-physics-system This page describes how to use aframe-physics-system with the Cannon Driver @@ -30,14 +30,14 @@ npm install --save @c-frame/aframe-physics-system require('aframe-physics-system'); ``` -Once installed, you'll need to compile your JavaScript using something like [Browserify](http://browserify.org/) or [Webpack](http://webpack.github.io/). Example: +Once installed, you'll need to compile your JavaScript using something like [Browserify](https://browserify.org/) or [Webpack](https://webpack.github.io/). Example: ```bash npm install -g browserify browserify my-app.js -o bundle.js ``` -`bundle.js` may then be included in your page. See [here](http://browserify.org/#middle-section) for a better introduction to Browserify. +`bundle.js` may then be included in your page. See [here](https://browserify.org/#middle-section) for a better introduction to Browserify. #### npm + webpack @@ -204,7 +204,7 @@ Example: ## Using the CANNON.js API -For more advanced physics, use the CANNON.js API with custom JavaScript and A-Frame components. The [CANNON.js documentation](http://schteppe.github.io/cannon.js/docs/) and source code offer good resources for learning to work with physics in JavaScript. +For more advanced physics, use the CANNON.js API with custom JavaScript and A-Frame components. The [CANNON.js documentation](https://schteppe.github.io/cannon.js/docs/) and source code offer good resources for learning to work with physics in JavaScript. In A-Frame, each entity's `CANNON.Body` instance is exposed on the `el.body` property. To apply a quick push to an object, you might do the following: @@ -291,9 +291,9 @@ More advanced configuration, including specifying different collision behaviors Resources: -* [CANNON.World](http://schteppe.github.io/cannon.js/docs/classes/World.html) +* [CANNON.World](https://schteppe.github.io/cannon.js/docs/classes/World.html) -* [CANNON.ContactMaterial](http://schteppe.github.io/cannon.js/docs/classes/ContactMaterial.html) +* [CANNON.ContactMaterial](https://schteppe.github.io/cannon.js/docs/classes/ContactMaterial.html) ## Statistics diff --git a/README.md b/README.md index 9c6f9531..13685545 100755 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A C-Frame fork, collectively maintained by the A-Frame community. Also see [the --> Components for A-Frame physics integration. -Supports [CANNON.js](http://schteppe.github.io/cannon.js/) and [Ammo.js](https://github.com/kripken/ammo.js/). See +Supports [CANNON.js](https://schteppe.github.io/cannon.js/) and [Ammo.js](https://github.com/kripken/ammo.js/). See [examples](https://c-frame.github.io/aframe-physics-system/examples/). ## Contents diff --git a/examples/ammo/compound.html b/examples/ammo/compound.html index 7021a6e0..606002bd 100644 --- a/examples/ammo/compound.html +++ b/examples/ammo/compound.html @@ -4,7 +4,7 @@ Examples • Compound AMMO - + @@ -31,10 +31,10 @@ geometry="primitive: circle; radius: 0.01; segments: 4;" material="color: #FF4444; shader: flat"> - + hand-controls="hand: right" grab> diff --git a/examples/ammo/constraints.html b/examples/ammo/constraints.html index 41434fd2..b800b9bf 100644 --- a/examples/ammo/constraints.html +++ b/examples/ammo/constraints.html @@ -1,11 +1,11 @@ - + Examples • Constraints • AMMO - + diff --git a/examples/ammo/materials.html b/examples/ammo/materials.html index e5b6546d..17aefa4d 100644 --- a/examples/ammo/materials.html +++ b/examples/ammo/materials.html @@ -4,7 +4,7 @@ Examples • Materials AMMO - + @@ -32,10 +32,10 @@ geometry="primitive: circle; radius: 0.01; segments: 4;" material="color: #FF4444; shader: flat"> - + hand-controls="hand: right" grab> diff --git a/examples/ammo/perf.html b/examples/ammo/perf.html index a271b24e..ec81bf36 100644 --- a/examples/ammo/perf.html +++ b/examples/ammo/perf.html @@ -4,7 +4,7 @@ Physics Benchmark Test - Ammo - + diff --git a/examples/ammo/sandbox.html b/examples/ammo/sandbox.html index 12107b3c..43273a79 100644 --- a/examples/ammo/sandbox.html +++ b/examples/ammo/sandbox.html @@ -3,7 +3,7 @@ Examples • AMMO - + diff --git a/examples/ammo/spring.html b/examples/ammo/spring.html index 123be150..85faed1e 100644 --- a/examples/ammo/spring.html +++ b/examples/ammo/spring.html @@ -4,7 +4,7 @@ Examples • Spring AMMO - + diff --git a/examples/ammo/stress.html b/examples/ammo/stress.html index 872c8f27..085a1568 100644 --- a/examples/ammo/stress.html +++ b/examples/ammo/stress.html @@ -4,7 +4,7 @@ Examples • Stress Test AMMO - + @@ -34,10 +34,10 @@ material="color: #FF4444; shader: flat"> - + hand-controls="hand: right" grab> diff --git a/examples/ammo/sweeper.html b/examples/ammo/sweeper.html index c7625315..745c06a1 100644 --- a/examples/ammo/sweeper.html +++ b/examples/ammo/sweeper.html @@ -4,7 +4,7 @@ Examples • Sweeper AMMO - + @@ -25,7 +25,7 @@ - @@ -34,10 +34,10 @@ geometry="primitive: circle; radius: 0.01; segments: 4;" material="color: #FF4444; shader: flat"> - + hand-controls="hand: right" grab> diff --git a/examples/ammo/ttl.html b/examples/ammo/ttl.html index 76e85535..31bae03b 100644 --- a/examples/ammo/ttl.html +++ b/examples/ammo/ttl.html @@ -3,7 +3,7 @@ Examples • TTL AMMO - + diff --git a/examples/cannon-worker/compound.html b/examples/cannon-worker/compound.html index 0d075212..4bc20d33 100644 --- a/examples/cannon-worker/compound.html +++ b/examples/cannon-worker/compound.html @@ -4,7 +4,7 @@ Examples • Compound CANNON Worker - + diff --git a/examples/cannon-worker/constraints.html b/examples/cannon-worker/constraints.html index fec4fed1..9e93653e 100644 --- a/examples/cannon-worker/constraints.html +++ b/examples/cannon-worker/constraints.html @@ -5,7 +5,7 @@ Examples • Constraints CANNON Worker - + diff --git a/examples/cannon-worker/materials.html b/examples/cannon-worker/materials.html index a04af077..95d2a187 100644 --- a/examples/cannon-worker/materials.html +++ b/examples/cannon-worker/materials.html @@ -4,7 +4,7 @@ Examples • Materials CANNON Worker - + @@ -23,7 +23,7 @@ - diff --git a/examples/cannon-worker/perf.html b/examples/cannon-worker/perf.html index 8edc40e1..7a497588 100644 --- a/examples/cannon-worker/perf.html +++ b/examples/cannon-worker/perf.html @@ -4,7 +4,7 @@ Physics Benchmark Test - Cannon - + diff --git a/examples/cannon-worker/sandbox.html b/examples/cannon-worker/sandbox.html index b330cb27..954fd541 100644 --- a/examples/cannon-worker/sandbox.html +++ b/examples/cannon-worker/sandbox.html @@ -3,7 +3,7 @@ Examples • Sandbox CANNON Worker - + + diff --git a/examples/cannon-worker/stress.html b/examples/cannon-worker/stress.html index 5ff68e1b..e3418c43 100644 --- a/examples/cannon-worker/stress.html +++ b/examples/cannon-worker/stress.html @@ -4,7 +4,7 @@ Examples • Stress Test CANNON Worker - + diff --git a/examples/cannon-worker/sweeper.html b/examples/cannon-worker/sweeper.html index c904e93e..47c12180 100644 --- a/examples/cannon-worker/sweeper.html +++ b/examples/cannon-worker/sweeper.html @@ -4,7 +4,7 @@ Examples • Sweeper CANNON Worker - + @@ -25,7 +25,7 @@ - diff --git a/examples/cannon-worker/ttl.html b/examples/cannon-worker/ttl.html index 69ffa7f0..95b91af9 100644 --- a/examples/cannon-worker/ttl.html +++ b/examples/cannon-worker/ttl.html @@ -3,7 +3,7 @@ Examples • TTL CANNON Worker - + + diff --git a/examples/cannon/constraints.html b/examples/cannon/constraints.html index caf3d343..d7db7c50 100644 --- a/examples/cannon/constraints.html +++ b/examples/cannon/constraints.html @@ -5,7 +5,7 @@ Examples • Constraints CANON - + diff --git a/examples/cannon/materials.html b/examples/cannon/materials.html index d1b6e9d5..be07246b 100644 --- a/examples/cannon/materials.html +++ b/examples/cannon/materials.html @@ -4,7 +4,7 @@ Examples • Materials CANNON - + @@ -24,7 +24,7 @@ - diff --git a/examples/cannon/perf.html b/examples/cannon/perf.html index e5865a9b..10d34915 100644 --- a/examples/cannon/perf.html +++ b/examples/cannon/perf.html @@ -4,7 +4,7 @@ Physics Benchmark Test - Cannon - + diff --git a/examples/cannon/sandbox.html b/examples/cannon/sandbox.html index d568f667..90f5c5ed 100644 --- a/examples/cannon/sandbox.html +++ b/examples/cannon/sandbox.html @@ -3,7 +3,7 @@ Examples • Sandbox CANNON - + + diff --git a/examples/cannon/stress.html b/examples/cannon/stress.html index ff7d89d7..cf3bf8f6 100644 --- a/examples/cannon/stress.html +++ b/examples/cannon/stress.html @@ -4,7 +4,7 @@ Examples • Stress Test CANNON - + diff --git a/examples/cannon/sweeper.html b/examples/cannon/sweeper.html index fe878d57..6e04cc90 100644 --- a/examples/cannon/sweeper.html +++ b/examples/cannon/sweeper.html @@ -4,7 +4,7 @@ Examples • Sweeper CANNON - + @@ -24,7 +24,7 @@ - diff --git a/examples/cannon/ttl.html b/examples/cannon/ttl.html index 810cdc65..d724a9cb 100644 --- a/examples/cannon/ttl.html +++ b/examples/cannon/ttl.html @@ -3,7 +3,7 @@ Examples • TTL CANNON - +