forked from schteppe/cannon.js
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
9 changed files
with
157 additions
and
133 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*global CANNON:true */ | ||
|
||
/** | ||
* @class CANNON.Constraint | ||
* @brief Constraint base class | ||
* @author schteppe | ||
* @param CANNON.RigidBody bodyA | ||
* @param CANNON.Vec3 pivotA A point defined locally in bodyA. This defines the offset of axisA. | ||
* @param CANNON.Vec3 axisA an axis that bodyA can rotate around. | ||
* @param CANNON.RigidBody bodyB | ||
* @param CANNON.Vec3 pivotB | ||
* @param CANNON.Vec3 axisB | ||
* @param float maxForce | ||
*/ | ||
CANNON.Constraint = function(bodyA,bodyB){ | ||
// Equations to be fed to the solver | ||
this.equations = []; | ||
this.bodyA = bodyA; | ||
this.bodyB = bodyB; | ||
}; | ||
|
||
// Update constraint | ||
CANNON.Constraint.prototype.update = function(){ | ||
throw new Error("method update() not implmemented in this Constraint subclass!"); | ||
}; |
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
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
Oops, something went wrong.