Enum ParticleSystem.Orientation
- java.lang.Object
-
- java.lang.Enum<ParticleSystem.Orientation>
-
- be.yildizgames.module.graphic.particle.ParticleSystem.Orientation
-
- All Implemented Interfaces:
Serializable,Comparable<ParticleSystem.Orientation>
- Enclosing class:
- ParticleSystem
public static enum ParticleSystem.Orientation extends Enum<ParticleSystem.Orientation>
Particle orientation possibilities.- Since:
- 0.9(14 / 03 / 2011)
- Version:
- 1.0
- Author:
- Van Den Borre Grégory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FACING_CAMERAThe particles always face the camera.ORIENTED_COMMONThe particles are oriented around a shared direction vector (used as Y axis) and only rotate around this to face the camera.ORIENTED_SELFThe particles have their own orientation.PERPENDICULAR_COMMONParticles 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.PERPENDICULAR_SELFParticles 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParticleSystem.OrientationvalueOf(String name)Returns the enum constant of this type with the specified name.static ParticleSystem.Orientation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FACING_CAMERA
public static final ParticleSystem.Orientation FACING_CAMERA
The particles always face the camera.
-
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.
-
ORIENTED_SELF
public static final ParticleSystem.Orientation ORIENTED_SELF
The particles have their own orientation.
-
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 nameNullPointerException- if the argument is null
-
-