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 theSpawnShapeValuevalues which spawn the particles on a geometric primitive.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrimitiveSpawnShapeValue.SpawnSide
-
Field Summary
Fields Modifier and Type Field Description protected floatspawnDepthprotected floatspawnDepthDiffScaledNumericValuespawnDepthValueprotected floatspawnHeightprotected floatspawnHeightDiffScaledNumericValuespawnHeightValueprotected floatspawnWidthprotected floatspawnWidthDiffScaledNumericValuespawnWidthValueprotected static Vector3TMP_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 ScaledNumericValuegetSpawnDepth()ScaledNumericValuegetSpawnHeight()ScaledNumericValuegetSpawnWidth()booleanisEdges()voidload(ParticleValue value)voidread(Json json, JsonValue jsonData)voidsetActive(boolean active)voidsetDimensions(float width, float height, float depth)voidsetEdges(boolean edges)voidstart()voidwrite(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:
setActivein 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:
startin classSpawnShapeValue
-
load
public void load(ParticleValue value)
- Overrides:
loadin classSpawnShapeValue
-
write
public void write(Json json)
- Specified by:
writein interfaceJson.Serializable- Overrides:
writein classSpawnShapeValue
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
readin interfaceJson.Serializable- Overrides:
readin classSpawnShapeValue
-
-