#

API Docs for: 0.6.1
Show: Inherited Protected Private Deprecated

# LockConstraint Class

Extends PointToPointConstraint
Defined in: `src/constraints/LockConstraint.js:10`

Lock constraint. Will remove all degrees of freedom between the bodies.

## Constructor

### `LockConstraint`

(

- `bodyA`
- `bodyB`
- `[options]`

)

Defined in `src/constraints/LockConstraint.js:10`

#### Parameters:

- `bodyA` Body
- `bodyB` Body
- `[options]` Object optional
  - `[maxForce=1e6]` Number optional

- Index
- Methods
- Properties

## Item Index

### Methods

- disable
- enable
- update

### Properties

- bodyA
- bodyB
- collideConnected
- equations
- equationX
- equationY
- equationZ
- id
- pivotA
- pivotB
- rotationalEquation1
- rotationalEquation2
- rotationalEquation3

## Methods

### `disable`

()

Inherited from Constraint: `src/constraints/Constraint.js:80`

Disables all equations in the constraint.

### `enable`

()

Inherited from Constraint: `src/constraints/Constraint.js:69`

Enables all equations in the constraint.

### `update`

()

Inherited from Constraint: `src/constraints/Constraint.js:61`

Update all the equations with data.

## Properties

### `bodyA`

Body

Inherited from Constraint: `src/constraints/Constraint.js:29`

### `bodyB`

Body

Inherited from Constraint: `src/constraints/Constraint.js:34`

### `collideConnected`

Boolean

Inherited from Constraint: `src/constraints/Constraint.js:44`

Set to true if you want the bodies to collide when they are connected.

### `equations`

Array

Inherited from Constraint: `src/constraints/Constraint.js:22`

Equations to be solved in this constraint

### `equationX`

ContactEquation

Inherited from PointToPointConstraint: `src/constraints/PointToPointConstraint.js:49`

### `equationY`

ContactEquation

Inherited from PointToPointConstraint: `src/constraints/PointToPointConstraint.js:54`

### `equationZ`

ContactEquation

Inherited from PointToPointConstraint: `src/constraints/PointToPointConstraint.js:59`

### `id`

Number

Inherited from Constraint: `src/constraints/Constraint.js:39`

### `pivotA`

Vec3

Inherited from PointToPointConstraint: `src/constraints/PointToPointConstraint.js:37`

Pivot, defined locally in bodyA.

### `pivotB`

Vec3

Inherited from PointToPointConstraint: `src/constraints/PointToPointConstraint.js:43`

Pivot, defined locally in bodyB.

### `rotationalEquation1`

RotationalEquation

Defined in `src/constraints/LockConstraint.js:35`

### `rotationalEquation2`

RotationalEquation

Defined in `src/constraints/LockConstraint.js:40`

### `rotationalEquation3`

RotationalEquation

Defined in `src/constraints/LockConstraint.js:45`