You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {MatterJS.Body} bodyB - The second possible `Body` that this constraint is attached to.
478
-
* @param {number} [length] - A Number that specifies the target resting length of the constraint. If not given it is calculated automatically in `Constraint.create` from initial positions of the `constraint.bodyA` and `constraint.bodyB`.
478
+
* @param {number} x - The x position in the world to create the constraint at.
479
+
* @param {number} y - The y position in the world to create the constraint at.
480
+
* @param {MatterJS.Body} body - The Matter `Body` that this constraint is attached to.
481
+
* @param {number} [length] - A number that specifies the target resting length of the constraint. If not given it is calculated automatically in `Constraint.create` from initial positions of the `constraint.bodyA` and `constraint.bodyB`.
479
482
* @param {number} [stiffness=1] - A Number that specifies the stiffness of the constraint, i.e. the rate at which it returns to its resting `constraint.length`. A value of `1` means the constraint should be very stiff. A value of `0.2` means the constraint acts as a soft spring.
480
483
* @param {object} [options={}] - [description]
481
484
*
482
485
* @return {MatterJS.Constraint} A Matter JS Constraint.
0 commit comments