Enum ParticleSystem.Orientation

    • Enum Constant Detail

      • ORIENTED_COMMON

        public static final ParticleSystem.Orientation ORIENTED_COMMON
        The particles are oriented around a shared direction vector (used as Y axis) and only rotate around this to face the camera.
      • PERPENDICULAR_COMMON

        public static final ParticleSystem.Orientation PERPENDICULAR_COMMON
        Particles are perpendicular to a common, typically fixed direction vector, which acts as their local Z axis, and their local Y axis coplanar with common direction and the common up vector. The billboard never rotates to face the camera, you might use double-side material to ensure particles never culled by back-facing. Good for aureolas, rings etc where the particles will perpendicular to the ground - this is slightly faster than perpendicular_self.
      • PERPENDICULAR_SELF

        public static final ParticleSystem.Orientation PERPENDICULAR_SELF
        Particles are perpendicular to their own direction vector, which acts as their local Z axis, and their local Y axis coplanar with their own direction vector and the common up vector. The billboard never rotates to face the camera, you might use double-side material to ensure particles never culled by back-facing. Good for rings stack etc where the particles will perpendicular to their traveling direction.
    • Method Detail

      • values

        public static ParticleSystem.Orientation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ParticleSystem.Orientation c : ParticleSystem.Orientation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ParticleSystem.Orientation valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null