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

Properties

bodyA: b2Body

The first attached body.

bodyB: b2Body

The second attached body.

collideConnected: boolean

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

joint1: b2Joint

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

joint2: b2Joint

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

ratio: number

The gear ratio.

type: number

The joint type is set automatically for concrete joint types.

userData: any

Use this to attach application specific data to your joints.

Generated using TypeDoc