Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Mar 13, 2018
1 parent 08a98a4 commit ddbf9bc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Components for A-Frame physics integration, built on [CANNON.js](http://schteppe
In the [dist/](https://github.com/donmccurdy/aframe-physics-system/tree/master/dist) folder, download the full or minified build. Include the script on your page, and all components are automatically registered for you:

```html
<script src="//cdn.rawgit.com/donmccurdy/aframe-physics-system/v3.0.1/dist/aframe-physics-system.min.js"></script>
<script src="//cdn.rawgit.com/donmccurdy/aframe-physics-system/v3.0.2/dist/aframe-physics-system.min.js"></script>
```

CDN builds for aframe-physics-system/v3.0.1:
CDN builds for aframe-physics-system/v3.0.2:

- [aframe-physics-system.js](https://cdn.rawgit.com/donmccurdy/aframe-physics-system/v3.0.1/dist/aframe-physics-system.js) *(development)*
- [aframe-physics-system.min.js](https://cdn.rawgit.com/donmccurdy/aframe-physics-system/v3.0.1/dist/aframe-physics-system.min.js) *(production)*
- [aframe-physics-system.js](https://cdn.rawgit.com/donmccurdy/aframe-physics-system/v3.0.2/dist/aframe-physics-system.js) *(development)*
- [aframe-physics-system.min.js](https://cdn.rawgit.com/donmccurdy/aframe-physics-system/v3.0.2/dist/aframe-physics-system.min.js) *(production)*

### npm

Expand Down
7 changes: 4 additions & 3 deletions dist/aframe-physics-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -15746,7 +15746,7 @@ var Body = {

var data = this.data;

if (data.type !== prevData.type) {
if (prevData.type != undefined && data.type !== prevData.type) {
console.warn('CANNON.Body type cannot be changed after instantiation');
}

Expand All @@ -15758,7 +15758,7 @@ var Body = {
if (data.mass !== prevData.mass) {
this.body.updateMassProperties();
}
this.body.updateProperties();
if (this.body.updateProperties) this.body.updateProperties();
},

/**
Expand Down Expand Up @@ -15934,7 +15934,8 @@ var Body = require('./body');
var StaticBody = AFRAME.utils.extend({}, Body.definition);

StaticBody.schema = AFRAME.utils.extend({}, Body.definition.schema, {
type: {default: 'static', oneOf: ['static', 'dynamic']}
type: {default: 'static', oneOf: ['static', 'dynamic']},
mass: {default: 0}
});

module.exports = AFRAME.registerComponent('static-body', StaticBody);
Expand Down
2 changes: 1 addition & 1 deletion dist/aframe-physics-system.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aframe-physics-system",
"version": "3.0.1",
"version": "3.0.2",
"description": "Physics system for A-Frame VR, built on Cannon.js",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit ddbf9bc

Please sign in to comment.