Interface ForceLaw<T>

A force law computes the forces on one or more bodies in the system.

interface ForceLaw<T> {
    expireTime: number;
    forces: Force<T>[];
    disconnect(): void;
    potentialEnergy(): T;
    updateForces(): Force<T>[];
}

Type Parameters

  • T

Hierarchy

  • SimObject
    • ForceLaw

Implemented by

Properties

expireTime: number
forces: Force<T>[]

The forces that were computed the last time that the updateForces() method was called.

Methods

  • TODO: This does not do anything in the existing implementations of ForceLaw.

    Returns void

  • Updates the forces based upon the current state of the bodies.

    Returns Force<T>[]

Generated using TypeDoc