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 {number} x - The x position in the world to create the constraint at.
522
-
* @param {number} y - The y position in the world to create the constraint at.
523
520
* @param {MatterJS.Body} body - The Matter `Body` that this constraint is attached to.
524
521
* @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`.
525
522
* @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.
526
523
* @param {object} [options={}] - [description]
527
524
*
528
525
* @return {MatterJS.Constraint} A Matter JS Constraint.
0 commit comments