Class ParticleExtra
java.lang.Object
gaiasky.scene.component.ParticleExtra
- All Implemented Interfaces:
com.badlogic.ashley.core.Component, ICopy
Component that holds extra information for particles, which are not
present in the
Particle record.
This component includes information such as the radius, effective temperature, and primitive render scale for the particle. This information is often used during rendering or for information display in the GUI.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledoubleThe surface gravity in log(cm.s**-2).doubleThe metallicity in dex.doublePrimitive render scale.doubleRadius of the object.doubleEffective temperature of the star, in Kelvin. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.ashley.core.ComponentgetCopy(com.badlogic.ashley.core.Engine engine) voidvoidvoidvoidsetMetallicity(Double mh) voidvoidsetPrimitiveRenderScale(Double primitiveRenderScale) voidsetSurfaceGravity(Double logG) voidvoid
-
Field Details
-
computedSize
public double computedSize -
radius
public double radiusRadius of the object. -
tEff
public double tEffEffective temperature of the star, in Kelvin. -
logG
public double logGThe surface gravity in log(cm.s**-2). -
mh
public double mhThe metallicity in dex. -
primitiveRenderScale
public double primitiveRenderScalePrimitive render scale.
-
-
Constructor Details
-
ParticleExtra
public ParticleExtra()
-
-
Method Details
-
setTEff
-
setteff
-
setEffectiveTemperature
-
setLogG
-
setLogg
-
setSurfaceGravity
-
setMh
-
setMetallicity
-
setPrimitiveRenderScale
-
getCopy
-