protected RangedNumericValue[] getXSizeValues (){ if (xSizeValues == null){ xSizeValues = new RangedNumericValue[3]; xSizeValues[0] = xScaleValue; xSizeValues[1] = spawnWidthValue; xSizeValues[2] = xOffsetValue; } return xSizeValues; }
protected RangedNumericValue[] getYSizeValues (){ if (ySizeValues == null){ ySizeValues = new RangedNumericValue[3]; ySizeValues[0] = yScaleValue; ySizeValues[1] = spawnHeightValue; ySizeValues[2] = yOffsetValue; } return ySizeValues; }
protected RangedNumericValue[] getMotionValues (){ if (motionValues == null){ motionValues = new RangedNumericValue[3]; motionValues[0] = velocityValue; motionValues[1] = windValue; motionValues[2] = gravityValue; } return motionValues; }
/** Permanently scales the speed of the emitter by scaling all its ranged values related to motion. */ public void scaleMotion (float scale){ if (scale == 1f) return; for (RangedNumericValue value : getMotionValues()) value.scale(scale); }