Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc bug fixes. #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/solver/GSSolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function GSSolver(options){
* @type {Number}
* @default 0
*/
this.frictionIterations = options.frictionIterations !== undefined ? 0 : options.frictionIterations;
this.frictionIterations = options.frictionIterations !== undefined ? options.frictionIterations : 0;

/**
* The number of iterations that were made during the last solve. If .tolerance is zero, this value will always be equal to .iterations, but if .tolerance is larger than zero, and the solver can quit early, then this number will be somewhere between 1 and .iterations.
Expand Down
2 changes: 1 addition & 1 deletion src/world/World.js
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ World.prototype.removeBody = function(body){
var constraints = this.constraints;
var l = constraints.length;
while (l--) {
if(constraints[l].bodyA === this || constraints[l].bodyB === this){
if(constraints[l].bodyA === body || constraints[l].bodyB === body){
throw new Error('Cannot remove Body from World: it still has constraints connected to it.');
}
}
Expand Down