Skip to content

Commit

Permalink
added version targets for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 30, 2020
1 parent 31d0ace commit 142b7de
Show file tree
Hide file tree
Showing 43 changed files with 172 additions and 86 deletions.
6 changes: 4 additions & 2 deletions examples/airFriction.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ Example.airFriction = function() {
};
};

Example.airFriction.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.airFriction;
}
6 changes: 4 additions & 2 deletions examples/avalanche.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ Example.avalanche = function() {
};
};

Example.avalanche.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.avalanche;
}
6 changes: 4 additions & 2 deletions examples/ballPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ Example.ballPool = function() {
};
};

Example.ballPool.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.ballPool;
}
6 changes: 4 additions & 2 deletions examples/bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ Example.bridge = function() {
};
};

Example.bridge.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.bridge;
}
6 changes: 4 additions & 2 deletions examples/broadphase.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Example.broadphase = function() {
};
};

Example.broadphase.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.broadphase;
}
6 changes: 4 additions & 2 deletions examples/car.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ Example.car = function() {
};
};

Example.car.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.car;
}
6 changes: 4 additions & 2 deletions examples/catapult.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ Example.catapult = function() {
};
};

Example.catapult.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.catapult;
}
6 changes: 4 additions & 2 deletions examples/chains.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ Example.chains = function() {
};
};

Example.chains.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.chains;
}
6 changes: 4 additions & 2 deletions examples/circleStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Example.circleStack = function() {
};
};

Example.circleStack.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.circleStack;
}
6 changes: 4 additions & 2 deletions examples/cloth.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ Example.cloth = function() {
};
};

Example.cloth.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.cloth;
}
6 changes: 4 additions & 2 deletions examples/collisionFiltering.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ Example.collisionFiltering = function() {
};
};

Example.collisionFiltering.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.collisionFiltering;
}
6 changes: 4 additions & 2 deletions examples/compositeManipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ Example.compositeManipulation = function() {
};
};

Example.compositeManipulation.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.compositeManipulation;
}
6 changes: 4 additions & 2 deletions examples/compound.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ Example.compound = function() {
};
};

Example.compound.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.compound;
}
6 changes: 4 additions & 2 deletions examples/compoundStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ Example.compoundStack = function() {
};
};

Example.compoundStack.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.compoundStack;
}
6 changes: 4 additions & 2 deletions examples/concave.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Example.concave = function() {
};
};

Example.concave.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.concave;
}
6 changes: 4 additions & 2 deletions examples/constraints.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ Example.constraints = function() {
};
};

Example.constraints.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.constraints;
}
6 changes: 4 additions & 2 deletions examples/doublePendulum.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ Example.doublePendulum = function() {
};
};

Example.doublePendulum.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.doublePendulum;
}
6 changes: 4 additions & 2 deletions examples/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ Example.events = function() {
};
};

Example.events.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.events;
}
6 changes: 4 additions & 2 deletions examples/friction.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ Example.friction = function() {
};
};

Example.friction.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.friction;
}
6 changes: 4 additions & 2 deletions examples/gravity.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ Example.gravity = function() {
};
};

Example.gravity.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.gravity;
}
6 changes: 4 additions & 2 deletions examples/gyro.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ Example.gyro = function() {
};
};

Example.gyro.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.gyro;
}
6 changes: 4 additions & 2 deletions examples/manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ Example.manipulation = function() {
};
};

Example.manipulation.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.manipulation;
}
6 changes: 4 additions & 2 deletions examples/mixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ Example.mixed = function() {
};
};

Example.mixed.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.mixed;
}
6 changes: 4 additions & 2 deletions examples/newtonsCradle.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Example.newtonsCradle = function() {
};
};

Example.newtonsCradle.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.newtonsCradle;
}
6 changes: 4 additions & 2 deletions examples/pyramid.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Example.pyramid = function() {
};
};

Example.pyramid.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.pyramid;
}
6 changes: 4 additions & 2 deletions examples/ragdoll.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ Example.ragdoll.ragdoll = function(x, y, scale, options) {
return person;
};

Example.ragdoll.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.ragdoll;
}
6 changes: 4 additions & 2 deletions examples/raycasting.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ Example.raycasting = function() {
};
};

Example.raycasting.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.raycasting;
}
6 changes: 4 additions & 2 deletions examples/restitution.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Example.restitution = function() {
};
};

Example.restitution.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.restitution;
}
6 changes: 4 additions & 2 deletions examples/rounded.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ Example.rounded = function() {
};
};

Example.rounded.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.rounded;
}
6 changes: 4 additions & 2 deletions examples/sensors.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ Example.sensors = function() {
};
};

Example.sensors.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.sensors;
}
6 changes: 4 additions & 2 deletions examples/sleeping.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ Example.sleeping = function() {
};
};

Example.sleeping.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.sleeping;
}
6 changes: 4 additions & 2 deletions examples/slingshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ Example.slingshot = function() {
};
};

Example.slingshot.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.slingshot;
}
6 changes: 4 additions & 2 deletions examples/softBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Example.softBody = function() {
};
};

Example.softBody.for = '>=0.14.2';

if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]];
}
module.exports = Example.softBody;
}
Loading

0 comments on commit 142b7de

Please sign in to comment.