Module technology.sola.engine
Record Class ParticleNoise
java.lang.Object
java.lang.Record
technology.sola.engine.physics.component.particle.movement.ParticleNoise
- Record Components:
xStrength- the strength of the noise effect on the x-axis (positive value or zero)yStrength- the strength of the noise effect on the y-axis (positive value or zero)frequency- the frequency of direction change (higher values mean more direction changes [0.5f is a decent default])
ParticleNoise hold details on how much noise in a
Particles
movement there is.-
Constructor Summary
ConstructorsConstructorDescriptionParticleNoise(float xStrength, float yStrength, float frequency) Creates an instance of aParticleNoiserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thefrequencyrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.floatReturns the value of thexStrengthrecord component.floatReturns the value of theyStrengthrecord component.
-
Constructor Details
-
ParticleNoise
public ParticleNoise(float xStrength, float yStrength, float frequency) Creates an instance of aParticleNoiserecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
xStrength
public float xStrength()Returns the value of thexStrengthrecord component.- Returns:
- the value of the
xStrengthrecord component
-
yStrength
public float yStrength()Returns the value of theyStrengthrecord component.- Returns:
- the value of the
yStrengthrecord component
-
frequency
public float frequency()Returns the value of thefrequencyrecord component.- Returns:
- the value of the
frequencyrecord component
-