From c0164e69d5d9a89a0a19a0acfba1f55567632049 Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Tue, 20 Sep 2011 18:09:35 -0700 Subject: [PATCH] box2d 2.1 doesn't have chain shapes, will finish later --- static/14/index.html | 4 ---- static/15/index.html | 4 ---- static/Box2D.js | 34 +++++++++++++++++----------------- static/index.html | 1 + 4 files changed, 18 insertions(+), 25 deletions(-) diff --git a/static/14/index.html b/static/14/index.html index fb0bf81..e02eae6 100644 --- a/static/14/index.html +++ b/static/14/index.html @@ -31,10 +31,6 @@

Box2D with Mouse Joint and HTML5 Canvas

-

- Read matching blog post for explanation -

-

Black dot is the position of the object, the yellow dot is the center of mass.

diff --git a/static/15/index.html b/static/15/index.html index 6fc58d2..2ecb67c 100644 --- a/static/15/index.html +++ b/static/15/index.html @@ -31,10 +31,6 @@

Box2D with Pulley Joint and HTML5 Canvas

-

- Read matching blog post for explanation -

-

Black dot is the position of the object, the yellow dot is the center of mass.

diff --git a/static/Box2D.js b/static/Box2D.js index a64ea51..cb5e30c 100644 --- a/static/Box2D.js +++ b/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 = {}; @@ -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; diff --git a/static/index.html b/static/index.html index ac53671..6079f43 100644 --- a/static/index.html +++ b/static/index.html @@ -42,6 +42,7 @@

Box2D JavaScript examples and demos

  • 10 - box2d with revolute joint and motor and HTML5 canvas
  • 14 - box2d with mouse joint and html5 canvas
  • 15 - box2d with pulley joint and html5 canvas
  • +
  • 16 - box2d with chain shape and html5 canvas