Class MeshSpawnShapeValue
- 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.MeshSpawnShapeValue
-
- All Implemented Interfaces:
ResourceData.Configurable,Json.Serializable
- Direct Known Subclasses:
UnweightedMeshSpawnShapeValue,WeightMeshSpawnShapeValue
public abstract class MeshSpawnShapeValue extends SpawnShapeValue
The base class of all theParticleValuevalues which spawn a particle on a mesh shape.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeshSpawnShapeValue.Triangle
-
Field Summary
Fields Modifier and Type Field Description protected Meshmeshprotected Modelmodelthe model this mesh belongs to.-
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 MeshSpawnShapeValue()MeshSpawnShapeValue(MeshSpawnShapeValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidload(AssetManager manager, ResourceData data)voidload(ParticleValue value)voidsave(AssetManager manager, ResourceData data)voidsetMesh(Mesh mesh)voidsetMesh(Mesh mesh, Model model)-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.values.SpawnShapeValue
copy, init, read, spawn, spawnAux, start, write
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
isActive, setActive
-
-
-
-
Constructor Detail
-
MeshSpawnShapeValue
public MeshSpawnShapeValue(MeshSpawnShapeValue value)
-
MeshSpawnShapeValue
public MeshSpawnShapeValue()
-
-
Method Detail
-
load
public void load(ParticleValue value)
- Overrides:
loadin classSpawnShapeValue
-
setMesh
public void setMesh(Mesh mesh)
-
save
public void save(AssetManager manager, ResourceData data)
- Specified by:
savein interfaceResourceData.Configurable- Overrides:
savein classSpawnShapeValue
-
load
public void load(AssetManager manager, ResourceData data)
- Specified by:
loadin interfaceResourceData.Configurable- Overrides:
loadin classSpawnShapeValue
-
-