This repository has been archived by the owner on Dec 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e2f9b2
commit 3485c77
Showing
24 changed files
with
904 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/** | ||
* PhysicsJS v0.5.3 - 2013-11-25 | ||
* PhysicsJS v0.5.4 - 2014-02-03 | ||
* A modular, extendable, and easy-to-use physics engine for javascript | ||
* http://wellcaffeinated.net/PhysicsJS | ||
* | ||
* Copyright (c) 2013 Jasper Palfree <[email protected]> | ||
* Copyright (c) 2014 Jasper Palfree <[email protected]> | ||
* Licensed MIT | ||
*/ | ||
(function (root, factory) { | ||
var deps = ['physicsjs']; | ||
if (typeof exports === 'object') { | ||
// Node. | ||
var mods = deps.map(require); | ||
module.exports = factory.call(root, mods[ 0 ]); | ||
} else if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(deps, function( p ){ return factory.call(root, p); }); | ||
if (typeof define === 'function' && define.amd) { | ||
define(['physicsjs'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory.apply(root, ['physicsjs'].map(require)); | ||
} else { | ||
// Browser globals (root is window). Dependency management is up to you. | ||
root.Physics = factory.call(root, root.Physics); | ||
factory.call(root, root.Physics); | ||
} | ||
}(this, function ( Physics ) { | ||
}(this, function (Physics) { | ||
'use strict'; | ||
/** | ||
* Body collision detection | ||
|
@@ -342,4 +337,4 @@ | |
}); | ||
// end module: behaviors/body-collision-detection.js | ||
return Physics; | ||
})); // UMD | ||
}));// UMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/** | ||
* PhysicsJS v0.5.3 - 2013-11-25 | ||
* PhysicsJS v0.5.4 - 2014-02-03 | ||
* A modular, extendable, and easy-to-use physics engine for javascript | ||
* http://wellcaffeinated.net/PhysicsJS | ||
* | ||
* Copyright (c) 2013 Jasper Palfree <[email protected]> | ||
* Copyright (c) 2014 Jasper Palfree <[email protected]> | ||
* Licensed MIT | ||
*/ | ||
(function (root, factory) { | ||
var deps = ['physicsjs']; | ||
if (typeof exports === 'object') { | ||
// Node. | ||
var mods = deps.map(require); | ||
module.exports = factory.call(root, mods[ 0 ]); | ||
} else if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(deps, function( p ){ return factory.call(root, p); }); | ||
if (typeof define === 'function' && define.amd) { | ||
define(['physicsjs'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory.apply(root, ['physicsjs'].map(require)); | ||
} else { | ||
// Browser globals (root is window). Dependency management is up to you. | ||
root.Physics = factory.call(root, root.Physics); | ||
factory.call(root, root.Physics); | ||
} | ||
}(this, function ( Physics ) { | ||
}(this, function (Physics) { | ||
'use strict'; | ||
/** | ||
* Body collision response | ||
|
@@ -256,4 +251,4 @@ | |
|
||
// end module: behaviors/body-impulse-response.js | ||
return Physics; | ||
})); // UMD | ||
}));// UMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/** | ||
* PhysicsJS v0.5.3 - 2013-11-25 | ||
* PhysicsJS v0.5.4 - 2014-02-03 | ||
* A modular, extendable, and easy-to-use physics engine for javascript | ||
* http://wellcaffeinated.net/PhysicsJS | ||
* | ||
* Copyright (c) 2013 Jasper Palfree <[email protected]> | ||
* Copyright (c) 2014 Jasper Palfree <[email protected]> | ||
* Licensed MIT | ||
*/ | ||
(function (root, factory) { | ||
var deps = ['physicsjs']; | ||
if (typeof exports === 'object') { | ||
// Node. | ||
var mods = deps.map(require); | ||
module.exports = factory.call(root, mods[ 0 ]); | ||
} else if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(deps, function( p ){ return factory.call(root, p); }); | ||
if (typeof define === 'function' && define.amd) { | ||
define(['physicsjs'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory.apply(root, ['physicsjs'].map(require)); | ||
} else { | ||
// Browser globals (root is window). Dependency management is up to you. | ||
root.Physics = factory.call(root, root.Physics); | ||
factory.call(root, root.Physics); | ||
} | ||
}(this, function ( Physics ) { | ||
}(this, function (Physics) { | ||
'use strict'; | ||
/** | ||
* Constant acceleration behavior | ||
|
@@ -78,4 +73,4 @@ | |
}); | ||
// end module: behaviors/constant-acceleration.js | ||
return Physics; | ||
})); // UMD | ||
}));// UMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/** | ||
* PhysicsJS v0.5.3 - 2013-11-25 | ||
* PhysicsJS v0.5.4 - 2014-02-03 | ||
* A modular, extendable, and easy-to-use physics engine for javascript | ||
* http://wellcaffeinated.net/PhysicsJS | ||
* | ||
* Copyright (c) 2013 Jasper Palfree <[email protected]> | ||
* Copyright (c) 2014 Jasper Palfree <[email protected]> | ||
* Licensed MIT | ||
*/ | ||
(function (root, factory) { | ||
var deps = ['physicsjs']; | ||
if (typeof exports === 'object') { | ||
// Node. | ||
var mods = deps.map(require); | ||
module.exports = factory.call(root, mods[ 0 ]); | ||
} else if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(deps, function( p ){ return factory.call(root, p); }); | ||
if (typeof define === 'function' && define.amd) { | ||
define(['physicsjs'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory.apply(root, ['physicsjs'].map(require)); | ||
} else { | ||
// Browser globals (root is window). Dependency management is up to you. | ||
root.Physics = factory.call(root, root.Physics); | ||
factory.call(root, root.Physics); | ||
} | ||
}(this, function ( Physics ) { | ||
}(this, function (Physics) { | ||
'use strict'; | ||
/** | ||
* Edge collision detection. | ||
|
@@ -284,4 +279,4 @@ | |
}); | ||
// end module: behaviors/edge-collision-detection.js | ||
return Physics; | ||
})); // UMD | ||
}));// UMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/** | ||
* PhysicsJS v0.5.3 - 2013-11-25 | ||
* PhysicsJS v0.5.4 - 2014-02-03 | ||
* A modular, extendable, and easy-to-use physics engine for javascript | ||
* http://wellcaffeinated.net/PhysicsJS | ||
* | ||
* Copyright (c) 2013 Jasper Palfree <[email protected]> | ||
* Copyright (c) 2014 Jasper Palfree <[email protected]> | ||
* Licensed MIT | ||
*/ | ||
(function (root, factory) { | ||
var deps = ['physicsjs']; | ||
if (typeof exports === 'object') { | ||
// Node. | ||
var mods = deps.map(require); | ||
module.exports = factory.call(root, mods[ 0 ]); | ||
} else if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(deps, function( p ){ return factory.call(root, p); }); | ||
if (typeof define === 'function' && define.amd) { | ||
define(['physicsjs'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory.apply(root, ['physicsjs'].map(require)); | ||
} else { | ||
// Browser globals (root is window). Dependency management is up to you. | ||
root.Physics = factory.call(root, root.Physics); | ||
factory.call(root, root.Physics); | ||
} | ||
}(this, function ( Physics ) { | ||
}(this, function (Physics) { | ||
'use strict'; | ||
/** | ||
* Newtonian attraction between bodies (inverse square law) | ||
|
@@ -98,4 +93,4 @@ | |
|
||
// end module: behaviors/newtonian.js | ||
return Physics; | ||
})); // UMD | ||
}));// UMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/** | ||
* PhysicsJS v0.5.3 - 2013-11-25 | ||
* PhysicsJS v0.5.4 - 2014-02-03 | ||
* A modular, extendable, and easy-to-use physics engine for javascript | ||
* http://wellcaffeinated.net/PhysicsJS | ||
* | ||
* Copyright (c) 2013 Jasper Palfree <[email protected]> | ||
* Copyright (c) 2014 Jasper Palfree <[email protected]> | ||
* Licensed MIT | ||
*/ | ||
(function (root, factory) { | ||
var deps = ['physicsjs']; | ||
if (typeof exports === 'object') { | ||
// Node. | ||
var mods = deps.map(require); | ||
module.exports = factory.call(root, mods[ 0 ]); | ||
} else if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(deps, function( p ){ return factory.call(root, p); }); | ||
if (typeof define === 'function' && define.amd) { | ||
define(['physicsjs'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory.apply(root, ['physicsjs'].map(require)); | ||
} else { | ||
// Browser globals (root is window). Dependency management is up to you. | ||
root.Physics = factory.call(root, root.Physics); | ||
factory.call(root, root.Physics); | ||
} | ||
}(this, function ( Physics ) { | ||
}(this, function (Physics) { | ||
'use strict'; | ||
/** | ||
* Rigid constraints manager. | ||
|
@@ -206,4 +201,4 @@ | |
|
||
// end module: behaviors/rigid-constraint-manager.js | ||
return Physics; | ||
})); // UMD | ||
}));// UMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/** | ||
* PhysicsJS v0.5.3 - 2013-11-25 | ||
* PhysicsJS v0.5.4 - 2014-02-03 | ||
* A modular, extendable, and easy-to-use physics engine for javascript | ||
* http://wellcaffeinated.net/PhysicsJS | ||
* | ||
* Copyright (c) 2013 Jasper Palfree <[email protected]> | ||
* Copyright (c) 2014 Jasper Palfree <[email protected]> | ||
* Licensed MIT | ||
*/ | ||
(function (root, factory) { | ||
var deps = ['physicsjs']; | ||
if (typeof exports === 'object') { | ||
// Node. | ||
var mods = deps.map(require); | ||
module.exports = factory.call(root, mods[ 0 ]); | ||
} else if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(deps, function( p ){ return factory.call(root, p); }); | ||
if (typeof define === 'function' && define.amd) { | ||
define(['physicsjs'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory.apply(root, ['physicsjs'].map(require)); | ||
} else { | ||
// Browser globals (root is window). Dependency management is up to you. | ||
root.Physics = factory.call(root, root.Physics); | ||
factory.call(root, root.Physics); | ||
} | ||
}(this, function ( Physics ) { | ||
}(this, function (Physics) { | ||
'use strict'; | ||
/** | ||
* Sweep and Prune implementation for broad phase collision detection | ||
|
@@ -489,4 +484,4 @@ | |
}); | ||
// end module: behaviors/sweep-prune.js | ||
return Physics; | ||
})); // UMD | ||
}));// UMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/** | ||
* PhysicsJS v0.5.3 - 2013-11-25 | ||
* PhysicsJS v0.5.4 - 2014-02-03 | ||
* A modular, extendable, and easy-to-use physics engine for javascript | ||
* http://wellcaffeinated.net/PhysicsJS | ||
* | ||
* Copyright (c) 2013 Jasper Palfree <[email protected]> | ||
* Copyright (c) 2014 Jasper Palfree <[email protected]> | ||
* Licensed MIT | ||
*/ | ||
(function (root, factory) { | ||
var deps = ['physicsjs']; | ||
if (typeof exports === 'object') { | ||
// Node. | ||
var mods = deps.map(require); | ||
module.exports = factory.call(root, mods[ 0 ]); | ||
} else if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(deps, function( p ){ return factory.call(root, p); }); | ||
if (typeof define === 'function' && define.amd) { | ||
define(['physicsjs'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory.apply(root, ['physicsjs'].map(require)); | ||
} else { | ||
// Browser globals (root is window). Dependency management is up to you. | ||
root.Physics = factory.call(root, root.Physics); | ||
factory.call(root, root.Physics); | ||
} | ||
}(this, function ( Physics ) { | ||
}(this, function (Physics) { | ||
'use strict'; | ||
/** | ||
* Verlet constraints manager. | ||
|
@@ -406,4 +401,4 @@ | |
|
||
// end module: behaviors/verlet-constraints.js | ||
return Physics; | ||
})); // UMD | ||
}));// UMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/** | ||
* PhysicsJS v0.5.3 - 2013-11-25 | ||
* PhysicsJS v0.5.4 - 2014-02-03 | ||
* A modular, extendable, and easy-to-use physics engine for javascript | ||
* http://wellcaffeinated.net/PhysicsJS | ||
* | ||
* Copyright (c) 2013 Jasper Palfree <[email protected]> | ||
* Copyright (c) 2014 Jasper Palfree <[email protected]> | ||
* Licensed MIT | ||
*/ | ||
(function (root, factory) { | ||
var deps = ['physicsjs', '../geometries/circle']; | ||
if (typeof exports === 'object') { | ||
// Node. | ||
var mods = deps.map(require); | ||
module.exports = factory.call(root, mods[ 0 ]); | ||
} else if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(deps, function( p ){ return factory.call(root, p); }); | ||
if (typeof define === 'function' && define.amd) { | ||
define(['physicsjs','../geometries/circle'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory.apply(root, ['physicsjs','../geometries/circle'].map(require)); | ||
} else { | ||
// Browser globals (root is window). Dependency management is up to you. | ||
root.Physics = factory.call(root, root.Physics); | ||
factory.call(root, root.Physics); | ||
} | ||
}(this, function ( Physics ) { | ||
}(this, function (Physics) { | ||
'use strict'; | ||
/** | ||
* Circle body definition | ||
|
@@ -67,4 +62,4 @@ | |
|
||
// end module: bodies/circle.js | ||
return Physics; | ||
})); // UMD | ||
}));// UMD |
Oops, something went wrong.