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 @@