Class ParticleEffect

    • Constructor Detail

      • ParticleEffect

        public ParticleEffect()
    • Method Detail

      • init

        public void init()
      • start

        public void start()
      • end

        public void end()
      • reset

        public void reset()
      • update

        public void update()
      • update

        public void update​(float deltaTime)
      • draw

        public void draw()
      • isComplete

        public boolean isComplete()
      • setTransform

        public void setTransform​(Matrix4 transform)
        Sets the given transform matrix on each controller.
      • rotate

        public void rotate​(Quaternion rotation)
        Applies the rotation to the current transformation matrix of each controller.
      • rotate

        public void rotate​(Vector3 axis,
                           float angle)
        Applies the rotation by the given angle around the given axis to the current transformation matrix of each controller.
        Parameters:
        axis - the rotation axis
        angle - the rotation angle in degrees
      • translate

        public void translate​(Vector3 translation)
        Applies the translation to the current transformation matrix of each controller.
      • scale

        public void scale​(float scaleX,
                          float scaleY,
                          float scaleZ)
        Applies the scale to the current transformation matrix of each controller.
      • scale

        public void scale​(Vector3 scale)
        Applies the scale to the current transformation matrix of each controller.
      • findController

        public ParticleController findController​(java.lang.String name)
        Returns the controller with the specified name, or null.
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Releases all resources of this object.
        Specified by:
        dispose in interface Disposable
      • getBoundingBox

        public BoundingBox getBoundingBox()
        Returns:
        the merged bounding box of all controllers.
      • setBatch

        public void setBatch​(Array<ParticleBatch<?>> batches)
        Assign one batch, among those passed in, to each controller. The batch must be compatible with the controller to be assigned.
      • copy

        public ParticleEffect copy()
        Returns:
        a copy of this effect, should be used after the particle effect has been loaded.