Skip to content

Commit

Permalink
box2d 2.1 doesn't have chain shapes, will finish later
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Ladd committed Sep 21, 2011
1 parent 3e67e39 commit c0164e6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 25 deletions.
4 changes: 0 additions & 4 deletions static/14/index.html
Expand Up @@ -31,10 +31,6 @@
<h1>Box2D with Mouse Joint and HTML5 Canvas</h1>
<canvas id="c0" width="640" height="480" style="border: 1px solid black"></canvas>

<p>
<a href="http://blog.sethladd.com/2011/09/box2d-with-complex-and-concave-objects.html">Read matching blog post for explanation</a>
</p>

<p>
Black dot is the position of the object, the yellow dot is the center of mass.
</p>
Expand Down
4 changes: 0 additions & 4 deletions static/15/index.html
Expand Up @@ -31,10 +31,6 @@
<h1>Box2D with Pulley Joint and HTML5 Canvas</h1>
<canvas id="c0" width="640" height="480" style="border: 1px solid black"></canvas>

<p>
<a href="http://blog.sethladd.com/2011/09/box2d-with-complex-and-concave-objects.html">Read matching blog post for explanation</a>
</p>

<p>
Black dot is the position of the object, the yellow dot is the center of mass.
</p>
Expand Down
34 changes: 17 additions & 17 deletions static/Box2D.js
@@ -1,19 +1,19 @@
/*
* Copyright (c) 2006-2007 Erin Catto http://www.gphysics.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
/*
* Copyright (c) 2006-2007 Erin Catto http://www.gphysics.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*/
var Box2D = {};

Expand Down Expand Up @@ -54,7 +54,7 @@ var Box2D = {};
};

a2j.is = function is(o1, o2) {
if (o1 === null) return false;
if (o1 === null) return false;
if ((o2 instanceof Function) && (o1 instanceof o2)) return true;
if ((o1.constructor.__implements != undefined) && (o1.constructor.__implements[o2])) return true;
return false;
Expand Down
1 change: 1 addition & 0 deletions static/index.html
Expand Up @@ -42,6 +42,7 @@ <h1>Box2D JavaScript examples and demos</h1>
<li><a href="10/index.html">10</a> - box2d with revolute joint and motor and HTML5 canvas</li>
<li><a href="14/index.html">14</a> - box2d with mouse joint and html5 canvas</li>
<li><a href="15/index.html">15</a> - box2d with pulley joint and html5 canvas</li>
<li>16 - box2d with chain shape and html5 canvas</li>
</ol>
<div class="g-plusone" data-size="small" data-annotation="inline"></div>
</body>
Expand Down

0 comments on commit c0164e6

Please sign in to comment.