You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AmmoDriver.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,12 @@ The Ammo.js driver provides many features and new functionality that the existin
25
25
26
26
## Installation
27
27
28
-
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).
28
+
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).
29
29
30
30
### Including the Ammo.js build
31
31
32
32
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).
33
-
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.
33
+
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.
34
34
35
35
#### Script Tag
36
36
@@ -39,7 +39,7 @@ This is the easiest way to include Ammo.js in your project and is recommended fo
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
255
255
-**Cone** (`cone`) – Requires `halfExtents`if using `fit: manual`. Use`cylinderAxis` to change which axis the point of the cone is aligned.
256
256
-**Hull** (`hull`) – Wraps a model in a convex hull, like a shrink-wrap. Not quite as performant as primitives, but still very fast.
257
257
-**Hull Approximate Convex Decomposition** (`hacd`) – This is an experimental feature that generates multiple convex hulls to approximate any convex or concave shape.
258
-
-**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.
258
+
-**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.
259
259
-**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 forstatic environments if the following is observed:
260
260
- 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.
261
261
- Avoid very high poly meshes in general and use mesh decimation (simplification) if possible.
Copy file name to clipboardExpand all lines: CannonDriver.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Cannon Driver
2
2
3
-
[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
3
+
[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
4
4
5
5
This page describes how to use aframe-physics-system with the Cannon Driver
Once installed, you'll need to compile your JavaScript using something like [Browserify](http://browserify.org/) or [Webpack](http://webpack.github.io/). Example:
33
+
Once installed, you'll need to compile your JavaScript using something like [Browserify](https://browserify.org/) or [Webpack](https://webpack.github.io/). Example:
34
34
35
35
```bash
36
36
npm install -g browserify
37
37
browserify my-app.js -o bundle.js
38
38
```
39
39
40
-
`bundle.js` may then be included in your page. See [here](http://browserify.org/#middle-section) for a better introduction to Browserify.
40
+
`bundle.js` may then be included in your page. See [here](https://browserify.org/#middle-section) for a better introduction to Browserify.
41
41
42
42
#### npm + webpack
43
43
@@ -204,7 +204,7 @@ Example:
204
204
205
205
## Using the CANNON.js API
206
206
207
-
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.
207
+
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.
208
208
209
209
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:
210
210
@@ -291,9 +291,9 @@ More advanced configuration, including specifying different collision behaviors
0 commit comments