Interface ParticleBehavior2D

All Known Implementing Classes:
AttractionBehavior2D, ConstantForceBehavior2D, GravityBehavior2D

public interface ParticleBehavior2D
  • Method Details

    • apply

      void apply(VerletParticle2D p)
      Applies the constraint to the passed in particle. The method is assumed to manipulate the given instance directly.
      Parameters:
      p - particle
    • applyWithIndex

      void applyWithIndex(SpatialIndex<Vec2D> index)
    • configure

      void configure(float timeStep)
    • supportsSpatialIndex

      boolean supportsSpatialIndex()