Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: BBTree.log()

  • Loading branch information...
commit 0bcbd3e6c86f192c1e635fb945aefa6c9bef08f4 1 parent dec71ca
@robwalch robwalch authored
Showing with 5 additions and 7 deletions.
  1. +3 −5 lib/cpBBTree.js
  2. +2 −2 lib/cpSpaceComponent.js
View
8 lib/cpBBTree.js
@@ -755,18 +755,16 @@ BBTree.prototype.optimize = function()
var nodeRender = function(node, depth)
{
if(!node.isLeaf && depth <= 10){
- nodeRender(node.a, depth + 1);
- nodeRender(node.b, depth + 1);
+ nodeRender(node.A, depth + 1);
+ nodeRender(node.B, depth + 1);
}
-// var bb = node.bb;
-
var str = '';
for(var i = 0; i < depth; i++) {
str += ' ';
}
-// console.log(str + bb.b + ' ' + bb.t);
+ console.log(str + node.bb_b + ' ' + node.bb_t);
};
BBTree.prototype.log = function(){
View
4 lib/cpSpaceComponent.js
@@ -309,8 +309,8 @@ Body.prototype.sleepWithGroup = function(group){
return;
}
- for(var i = 0; i < body.shapeList.length; i++){
- body.shapeList.update(this.p, this.rot);
+ for(var i = 0; i < this.shapeList.length; i++){
+ this.shapeList[i].update(this.p, this.rot);
}
space.deactivateBody(this);
Please sign in to comment.
Something went wrong with that request. Please try again.