Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Spring Abstract

Base class for LinearSpring and RotationalSpring. Not supposed to be used directly.

Hierarchy

Index

Constructors

Properties

bodyA: Body

First connected body.

bodyB: Body

Second connected body.

damping: number

Damping of the spring.

stiffness: number

Stiffness of the spring.

Methods

  • applyForce(): void
  • Apply the spring force to the connected bodies. Called automatically by the World.

    Returns void