Class FloorInfluence

java.lang.Object
com.ardor3d.extension.effect.particle.ParticleInfluence
com.ardor3d.extension.effect.particle.FloorInfluence
All Implemented Interfaces:
Savable

public class FloorInfluence extends ParticleInfluence
  • Constructor Details

    • FloorInfluence

      public FloorInfluence()
    • FloorInfluence

      public FloorInfluence(ReadOnlyPlane plane, double bounciness)
      Parameters:
      plane - The imaginary floor plane
      bounciness - Bounciness is the factor of multiplication when bouncing off the floor. A bounciness factor of 1 means the ball leaves the floor with the same velocity as it hit the floor, much like a rubber ball.
  • Method Details

    • apply

      public void apply(double dt, Particle particle, int index)
      Description copied from class: ParticleInfluence
      Apply the influence defined by this class on a given particle. Should probably do this by making a call to particle.getSpeed().addLocal(....); etc.
      Specified by:
      apply in class ParticleInfluence
      Parameters:
      dt - amount of time since last apply call in ms.
      particle - the particle to apply the influence to.
      index - the index of the particle we are working with. This is useful for adding small steady amounts of variation, or remembering information.
    • getBounciness

      public double getBounciness()
    • setBounciness

      public void setBounciness(double bounciness)
    • getFloor

      public ReadOnlyPlane getFloor()
    • setFloor

      public void setFloor(ReadOnlyPlane floor)
    • getNormal

      public ReadOnlyVector3 getNormal()
    • setNormal

      public void setNormal(Vector3 normal)
    • getConstant

      public double getConstant()
    • setConstant

      public void setConstant(double constant)
    • getClassTag

      public Class<? extends FloorInfluence> getClassTag()
      Specified by:
      getClassTag in interface Savable
      Overrides:
      getClassTag in class ParticleInfluence
    • write

      public void write(OutputCapsule capsule) throws IOException
      Specified by:
      write in interface Savable
      Overrides:
      write in class ParticleInfluence
      Throws:
      IOException
    • read

      public void read(InputCapsule capsule) throws IOException
      Specified by:
      read in interface Savable
      Overrides:
      read in class ParticleInfluence
      Throws:
      IOException