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
The base class of all the
SpawnShapeValue
values which spawn the particles on a geometric primitive.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected float
protected float
protected float
protected float
protected float
protected static final Vector3
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
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
isEdges()
void
load
(ParticleValue value) void
void
setActive
(boolean active) void
setDimensions
(float width, float height, float depth) void
setEdges
(boolean edges) void
start()
void
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 Details
-
TMP_V1
-
spawnWidthValue
-
spawnHeightValue
-
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 Details
-
PrimitiveSpawnShapeValue
public PrimitiveSpawnShapeValue() -
PrimitiveSpawnShapeValue
-
-
Method Details
-
setActive
public void setActive(boolean active) - Overrides:
setActive
in classParticleValue
-
isEdges
public boolean isEdges() -
setEdges
public void setEdges(boolean edges) -
getSpawnWidth
-
getSpawnHeight
-
getSpawnDepth
-
setDimensions
public void setDimensions(float width, float height, float depth) -
start
public void start()- Overrides:
start
in classSpawnShapeValue
-
load
- Overrides:
load
in classSpawnShapeValue
-
write
- Specified by:
write
in interfaceJson.Serializable
- Overrides:
write
in classSpawnShapeValue
-
read
- Specified by:
read
in interfaceJson.Serializable
- Overrides:
read
in classSpawnShapeValue
-