Class VelocityVerletSim

Represents a simulation function object that uses the Velocity Verlet integration method to simulate the motion of bodies.

Implements

Constructors

Properties

Methods

Constructors

Properties

forceCalculator: Force

Force object to calculate forces on bodies in the Universe.

Methods

  • Simulate a step in the Universe by using the previous and/or current state and a time step, using the Velocity Verlet integration method.

    Parameters

    • deltaT: number

      time step.

    • currState: State

      current state.

    Returns State

    new state after the simulation step.

Generated using TypeDoc