Class SpringAbstract

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

Hierarchy

Constructors

Properties

Methods

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

  • Apply the spring force to the connected bodies. Called automatically by the World.

    Returns void