Options
All
  • Public
  • Public/Protected
  • All
Menu

Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work). The provided joints must attach a dynamic body to a static body.

Hierarchy

Index

Constructors

constructor

Properties

bodyA

bodyA: b2Body

The first attached body.

bodyB

bodyB: b2Body

The second attached body.

collideConnected

collideConnected: boolean

Set this flag to true if the attached bodies should collide.

joint1

joint1: b2Joint

The first revolute/prismatic joint attached to the gear joint.

joint2

joint2: b2Joint

The second revolute/prismatic joint attached to the gear joint.

ratio

ratio: number

The gear ratio.

type

type: number

The joint type is set automatically for concrete joint types.

userData

userData: any

Use this to attach application specific data to your joints.

Generated using TypeDoc