Class SpawnShapeValue
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
-
- com.badlogic.gdx.graphics.g3d.particles.values.SpawnShapeValue
-
- All Implemented Interfaces:
ResourceData.Configurable
,Json.Serializable
- Direct Known Subclasses:
MeshSpawnShapeValue
,PrimitiveSpawnShapeValue
public abstract class SpawnShapeValue extends ParticleValue implements ResourceData.Configurable, Json.Serializable
Encapsulate the formulas to spawn a particle on a shape.
-
-
Field Summary
Fields Modifier and Type Field Description RangedNumericValue
xOffsetValue
RangedNumericValue
yOffsetValue
RangedNumericValue
zOffsetValue
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
active
-
-
Constructor Summary
Constructors Constructor Description SpawnShapeValue()
SpawnShapeValue(SpawnShapeValue spawnShapeValue)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SpawnShapeValue
copy()
void
init()
void
load(AssetManager manager, ResourceData data)
void
load(ParticleValue value)
void
read(Json json, JsonValue jsonData)
void
save(AssetManager manager, ResourceData data)
Vector3
spawn(Vector3 vector, float percent)
abstract void
spawnAux(Vector3 vector, float percent)
void
start()
void
write(Json json)
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
isActive, setActive
-
-
-
-
Field Detail
-
xOffsetValue
public RangedNumericValue xOffsetValue
-
yOffsetValue
public RangedNumericValue yOffsetValue
-
zOffsetValue
public RangedNumericValue zOffsetValue
-
-
Constructor Detail
-
SpawnShapeValue
public SpawnShapeValue()
-
SpawnShapeValue
public SpawnShapeValue(SpawnShapeValue spawnShapeValue)
-
-
Method Detail
-
spawnAux
public abstract void spawnAux(Vector3 vector, float percent)
-
init
public void init()
-
start
public void start()
-
load
public void load(ParticleValue value)
- Overrides:
load
in classParticleValue
-
copy
public abstract SpawnShapeValue copy()
-
write
public void write(Json json)
- Specified by:
write
in interfaceJson.Serializable
- Overrides:
write
in classParticleValue
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
read
in interfaceJson.Serializable
- Overrides:
read
in classParticleValue
-
save
public void save(AssetManager manager, ResourceData data)
- Specified by:
save
in interfaceResourceData.Configurable
-
load
public void load(AssetManager manager, ResourceData data)
- Specified by:
load
in interfaceResourceData.Configurable
-
-