Interface ForceProvider

All Known Implementing Classes:
ForceProviderEntity, ForceProviderStandard

public interface ForceProvider
Since:
2020-03-05
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(PhysicsBodyState state, ForceAccumulator accumulator, boolean onGround)
    Compute one or multiple forces acting on a physics body and add them to accumulator.
  • Method Details

    • update

      void update(PhysicsBodyState state, ForceAccumulator accumulator, boolean onGround)
      Compute one or multiple forces acting on a physics body and add them to accumulator.
      Parameters:
      state - Current position and velocity of body
      accumulator - Accumulator to add forces to
      onGround - Whether body is on ground currently