Class PrimitiveSpawnShapeValue
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
-
- com.badlogic.gdx.graphics.g3d.particles.values.SpawnShapeValue
-
- com.badlogic.gdx.graphics.g3d.particles.values.PrimitiveSpawnShapeValue
-
- All Implemented Interfaces:
ResourceData.Configurable
,Json.Serializable
- Direct Known Subclasses:
CylinderSpawnShapeValue
,EllipseSpawnShapeValue
,LineSpawnShapeValue
,PointSpawnShapeValue
,RectangleSpawnShapeValue
public abstract class PrimitiveSpawnShapeValue extends SpawnShapeValue
The base class of all theSpawnShapeValue
values which spawn the particles on a geometric primitive.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrimitiveSpawnShapeValue.SpawnSide
-
Field Summary
Fields Modifier and Type Field Description protected float
spawnDepth
protected float
spawnDepthDiff
ScaledNumericValue
spawnDepthValue
protected float
spawnHeight
protected float
spawnHeightDiff
ScaledNumericValue
spawnHeightValue
protected float
spawnWidth
protected float
spawnWidthDiff
ScaledNumericValue
spawnWidthValue
protected static Vector3
TMP_V1
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.particles.values.SpawnShapeValue
xOffsetValue, yOffsetValue, zOffsetValue
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
active
-
-
Constructor Summary
Constructors Constructor Description PrimitiveSpawnShapeValue()
PrimitiveSpawnShapeValue(PrimitiveSpawnShapeValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScaledNumericValue
getSpawnDepth()
ScaledNumericValue
getSpawnHeight()
ScaledNumericValue
getSpawnWidth()
boolean
isEdges()
void
load(ParticleValue value)
void
read(Json json, JsonValue jsonData)
void
setActive(boolean active)
void
setDimensions(float width, float height, float depth)
void
setEdges(boolean edges)
void
start()
void
write(Json json)
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.values.SpawnShapeValue
copy, init, load, save, spawn, spawnAux
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
isActive
-
-
-
-
Field Detail
-
TMP_V1
protected static final Vector3 TMP_V1
-
spawnWidthValue
public ScaledNumericValue spawnWidthValue
-
spawnHeightValue
public ScaledNumericValue spawnHeightValue
-
spawnDepthValue
public ScaledNumericValue spawnDepthValue
-
spawnWidth
protected float spawnWidth
-
spawnWidthDiff
protected float spawnWidthDiff
-
spawnHeight
protected float spawnHeight
-
spawnHeightDiff
protected float spawnHeightDiff
-
spawnDepth
protected float spawnDepth
-
spawnDepthDiff
protected float spawnDepthDiff
-
-
Constructor Detail
-
PrimitiveSpawnShapeValue
public PrimitiveSpawnShapeValue()
-
PrimitiveSpawnShapeValue
public PrimitiveSpawnShapeValue(PrimitiveSpawnShapeValue value)
-
-
Method Detail
-
setActive
public void setActive(boolean active)
- Overrides:
setActive
in classParticleValue
-
isEdges
public boolean isEdges()
-
setEdges
public void setEdges(boolean edges)
-
getSpawnWidth
public ScaledNumericValue getSpawnWidth()
-
getSpawnHeight
public ScaledNumericValue getSpawnHeight()
-
getSpawnDepth
public ScaledNumericValue getSpawnDepth()
-
setDimensions
public void setDimensions(float width, float height, float depth)
-
start
public void start()
- Overrides:
start
in classSpawnShapeValue
-
load
public void load(ParticleValue value)
- Overrides:
load
in classSpawnShapeValue
-
write
public void write(Json json)
- Specified by:
write
in interfaceJson.Serializable
- Overrides:
write
in classSpawnShapeValue
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
read
in interfaceJson.Serializable
- Overrides:
read
in classSpawnShapeValue
-
-