0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-27 13:59:01 -05:00

Spellchecking

This commit is contained in:
PlNG 2015-01-20 11:07:15 -05:00
parent bf3f986ca1
commit cd5d4011e6

View file

@ -9,10 +9,10 @@
* @class Constraint * @class Constraint
*/ */
// TODO: fix instabillity issues with torque // TODO: fix instability issues with torque
// TODO: linked constraints // TODO: linked constraints
// TODO: breakable constraints // TODO: breakable constraints
// TODO: collidable constraints // TODO: collision constraints
// TODO: allow constrained bodies to sleep // TODO: allow constrained bodies to sleep
// TODO: handle 0 length constraints properly // TODO: handle 0 length constraints properly
// TODO: impulse caching and warming // TODO: impulse caching and warming
@ -27,7 +27,7 @@ var Constraint = {};
/** /**
* Creates a new constraint. * Creates a new constraint.
* All properties have default values, and many are pre-calculated automatically based on other properties. * All properties have default values, and many are pre-calculated automatically based on other properties.
* See the properites section below for detailed information on what you can pass via the `options` object. * See the properties section below for detailed information on what you can pass via the `options` object.
* @method create * @method create
* @param {} options * @param {} options
* @return {constraint} constraint * @return {constraint} constraint
@ -200,8 +200,8 @@ var Constraint = {};
Sleeping.set(bodyA, false); Sleeping.set(bodyA, false);
// clamp to prevent instabillity // clamp to prevent instability
// TODO: solve this properlly // TODO: solve this properly
torque = Common.clamp(torque, -0.01, 0.01); torque = Common.clamp(torque, -0.01, 0.01);
// keep track of applied impulses for post solving // keep track of applied impulses for post solving
@ -220,8 +220,8 @@ var Constraint = {};
Sleeping.set(bodyB, false); Sleeping.set(bodyB, false);
// clamp to prevent instabillity // clamp to prevent instability
// TODO: solve this properlly // TODO: solve this properly
torque = Common.clamp(torque, -0.01, 0.01); torque = Common.clamp(torque, -0.01, 0.01);
// keep track of applied impulses for post solving // keep track of applied impulses for post solving
@ -370,10 +370,10 @@ var Constraint = {};
/** /**
* A `Number` that specifies the target resting length of the constraint. * A `Number` that specifies the target resting length of the constraint.
* It is calculated automatically in `Constraint.create` from intial positions of the `constraint.bodyA` and `constraint.bodyB`. * It is calculated automatically in `Constraint.create` from initial positions of the `constraint.bodyA` and `constraint.bodyB`.
* *
* @property length * @property length
* @type number * @type number
*/ */
})(); })();