Class ViscousDrag

  • All Implemented Interfaces:
    IForce

    public class ViscousDrag
    extends java.lang.Object
    implements IForce
    • Field Summary

      Fields 
      Modifier and Type Field Description
      float coefficient  
      • Fields inherited from interface teilchen.force.IForce

        ID
    • Constructor Summary

      Constructors 
      Constructor Description
      ViscousDrag()  
      ViscousDrag​(float pCoefficient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean active()  
      void active​(boolean pActiveState)  
      void apply​(float pDeltaTime, Physics pParticleSystem)  
      boolean dead()  
      void dead​(boolean pDead)  
      long ID()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • coefficient

        public float coefficient
    • Constructor Detail

      • ViscousDrag

        public ViscousDrag​(float pCoefficient)
      • ViscousDrag

        public ViscousDrag()
    • Method Detail

      • apply

        public final void apply​(float pDeltaTime,
                                Physics pParticleSystem)
        Specified by:
        apply in interface IForce
      • dead

        public boolean dead()
        Specified by:
        dead in interface IForce
      • dead

        public void dead​(boolean pDead)
        Specified by:
        dead in interface IForce
      • active

        public boolean active()
        Specified by:
        active in interface IForce
      • active

        public void active​(boolean pActiveState)
        Specified by:
        active in interface IForce
      • ID

        public long ID()
        Specified by:
        ID in interface IForce