# Class RevoluteImpulseJoint

#### Hierarchy (view full)

- UnitImpulseJoint
  - RevoluteImpulseJoint

- Defined in dynamics/impulse_joint.d.ts:156

#####
Index

### Constructors

constructor

### Properties

bodySet
handle
rawSet

### Methods

anchor1
anchor2
body1
body2
configureMotor
configureMotorModel
configureMotorPosition
configureMotorVelocity
contactsEnabled
finalizeDeserialization
isValid
limitsEnabled
limitsMax
limitsMin
rawAxis
setAnchor1
setAnchor2
setContactsEnabled
setLimits
type
newTyped

## Constructors

### constructor

- new RevoluteImpulseJoint(rawSet, bodySet, handle): RevoluteImpulseJoint

- #### Parameters

  - rawSet: RawImpulseJointSet
  - bodySet: RigidBodySet
  - handle: number

  #### Returns RevoluteImpulseJoint

  Inherited from UnitImpulseJoint.constructor

  - Defined in dynamics/impulse_joint.d.ts:58

## Properties

### `Protected` bodySet

bodySet: RigidBodySet

Inherited from UnitImpulseJoint.bodySet

- Defined in dynamics/impulse_joint.d.ts:56

### handle

handle: number

Inherited from UnitImpulseJoint.handle

- Defined in dynamics/impulse_joint.d.ts:57

### `Protected` rawSet

rawSet: RawImpulseJointSet

Inherited from UnitImpulseJoint.rawSet

- Defined in dynamics/impulse_joint.d.ts:55

## Methods

### anchor1

- anchor1(): Vector

- The position of the first anchor of this joint.

  The first anchor gives the position of the application point on the local frame of the first rigid-body it is attached to.

  #### Returns Vector

  Inherited from UnitImpulseJoint.anchor1

  - Defined in dynamics/impulse_joint.d.ts:85

### anchor2

- anchor2(): Vector

- The position of the second anchor of this joint.

  The second anchor gives the position of the application point on the local frame of the second rigid-body it is attached to.

  #### Returns Vector

  Inherited from UnitImpulseJoint.anchor2

  - Defined in dynamics/impulse_joint.d.ts:92

### body1

- body1(): RigidBody

- The first rigid-body this joint it attached to.

  #### Returns RigidBody

  Inherited from UnitImpulseJoint.body1

  - Defined in dynamics/impulse_joint.d.ts:70

### body2

- body2(): RigidBody

- The second rigid-body this joint is attached to.

  #### Returns RigidBody

  Inherited from UnitImpulseJoint.body2

  - Defined in dynamics/impulse_joint.d.ts:74

### configureMotor

- configureMotor(targetPos, targetVel, stiffness, damping): void

- #### Parameters

  - targetPos: number
  - targetVel: number
  - stiffness: number
  - damping: number

  #### Returns void

  Inherited from UnitImpulseJoint.configureMotor

  - Defined in dynamics/impulse_joint.d.ts:145

### configureMotorModel

- configureMotorModel(model): void

- #### Parameters

  - model: MotorModel

  #### Returns void

  Inherited from UnitImpulseJoint.configureMotorModel

  - Defined in dynamics/impulse_joint.d.ts:142

### configureMotorPosition

- configureMotorPosition(targetPos, stiffness, damping): void

- #### Parameters

  - targetPos: number
  - stiffness: number
  - damping: number

  #### Returns void

  Inherited from UnitImpulseJoint.configureMotorPosition

  - Defined in dynamics/impulse_joint.d.ts:144

### configureMotorVelocity

- configureMotorVelocity(targetVel, factor): void

- #### Parameters

  - targetVel: number
  - factor: number

  #### Returns void

  Inherited from UnitImpulseJoint.configureMotorVelocity

  - Defined in dynamics/impulse_joint.d.ts:143

### contactsEnabled

- contactsEnabled(): boolean

- Indicates if contacts are enabled between colliders attached to the rigid-bodies linked by this joint.

  #### Returns boolean

  Inherited from UnitImpulseJoint.contactsEnabled

  - Defined in dynamics/impulse_joint.d.ts:116

### finalizeDeserialization

- finalizeDeserialization(bodySet): void
- `Internal`

  #### Parameters

  - bodySet: RigidBodySet

  #### Returns void

  Inherited from UnitImpulseJoint.finalizeDeserialization

  - Defined in dynamics/impulse_joint.d.ts:61

### isValid

- isValid(): boolean

- Checks if this joint is still valid (i.e. that it has not been deleted from the joint set yet).

  #### Returns boolean

  Inherited from UnitImpulseJoint.isValid

  - Defined in dynamics/impulse_joint.d.ts:66

### limitsEnabled

- limitsEnabled(): boolean

- Are the limits enabled for this joint?

  #### Returns boolean

  Inherited from UnitImpulseJoint.limitsEnabled

  - Defined in dynamics/impulse_joint.d.ts:126

### limitsMax

- limitsMax(): number

- The max limit of this joint.

  #### Returns number

  Inherited from UnitImpulseJoint.limitsMax

  - Defined in dynamics/impulse_joint.d.ts:134

### limitsMin

- limitsMin(): number

- The min limit of this joint.

  #### Returns number

  Inherited from UnitImpulseJoint.limitsMin

  - Defined in dynamics/impulse_joint.d.ts:130

### rawAxis

- rawAxis(): RawJointAxis

- The axis left free by this joint.

  #### Returns RawJointAxis

  Overrides UnitImpulseJoint.rawAxis

  - Defined in dynamics/impulse_joint.d.ts:157

### setAnchor1

- setAnchor1(newPos): void

- Sets the position of the first anchor of this joint.

  The first anchor gives the position of the application point on the local frame of the first rigid-body it is attached to.

  #### Parameters

  - newPos: Vector

  #### Returns void

  Inherited from UnitImpulseJoint.setAnchor1

  - Defined in dynamics/impulse_joint.d.ts:99

### setAnchor2

- setAnchor2(newPos): void

- Sets the position of the second anchor of this joint.

  The second anchor gives the position of the application point on the local frame of the second rigid-body it is attached to.

  #### Parameters

  - newPos: Vector

  #### Returns void

  Inherited from UnitImpulseJoint.setAnchor2

  - Defined in dynamics/impulse_joint.d.ts:106

### setContactsEnabled

- setContactsEnabled(enabled): void

- Controls whether contacts are computed between colliders attached to the rigid-bodies linked by this joint.

  #### Parameters

  - enabled: boolean

  #### Returns void

  Inherited from UnitImpulseJoint.setContactsEnabled

  - Defined in dynamics/impulse_joint.d.ts:111

### setLimits

- setLimits(min, max): void

- Sets the limits of this joint.

  #### Parameters

  - min: number

    The minimum bound of this joint’s free coordinate.

  - max: number

    The maximum bound of this joint’s free coordinate.

  #### Returns void

  Inherited from UnitImpulseJoint.setLimits

  - Defined in dynamics/impulse_joint.d.ts:141

### type

- type(): JointType

- The type of this joint given as a string.

  #### Returns JointType

  Inherited from UnitImpulseJoint.type

  - Defined in dynamics/impulse_joint.d.ts:78

### `Static` newTyped

- newTyped(rawSet, bodySet, handle): ImpulseJoint

- #### Parameters

  - rawSet: RawImpulseJointSet
  - bodySet: RigidBodySet
  - handle: number

  #### Returns ImpulseJoint

  Inherited from UnitImpulseJoint.newTyped

  - Defined in dynamics/impulse_joint.d.ts:59