Click or drag to resize
SpawnRandomizer Constructor
Create the spawn randomizer.

Namespace:  GeonBit.ECS.Components.Particles.Animators
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public SpawnRandomizer(
	Nullable<float> minAlpha = null,
	Nullable<float> maxAlpha = null,
	Nullable<float> minScale = null,
	Nullable<float> maxScale = null,
	Nullable<Vector3> minScaleVector = null,
	Nullable<Vector3> maxScaleVector = null,
	Nullable<Color> minColor = null,
	Nullable<Color> maxColor = null,
	Nullable<Vector3> positionJitter = null,
	Nullable<Vector3> rotationJitter = null,
	Nullable<Vector3> impulseDirection = null,
	Nullable<Vector3> impulseDirectionJitter = null,
	Nullable<float> minImpulseStrength = null,
	Nullable<float> maxImpulseStrength = null
)

Parameters

minAlpha (Optional)
Type: SystemNullableSingle
Min alpha value (if set, maxAlpha must also be set).
maxAlpha (Optional)
Type: SystemNullableSingle
Max alpha value (if set, minAlpha must also be set).
minScale (Optional)
Type: SystemNullableSingle
Min scale value (if set, maxScale must also be set).
maxScale (Optional)
Type: SystemNullableSingle
Max scale value (if set, minScale must also be set).
minScaleVector (Optional)
Type: SystemNullableVector3
Min scale value as vector (if set, maxScaleVector must also be set).
maxScaleVector (Optional)
Type: SystemNullableVector3
Max scale value as vector (if set, minScaleVector must also be set).
minColor (Optional)
Type: SystemNullableColor
Min color value (if set, maxColor must also be set).
maxColor (Optional)
Type: SystemNullableColor
Max color value (if set, minColor must also be set).
positionJitter (Optional)
Type: SystemNullableVector3
Random position offset from starting position.
rotationJitter (Optional)
Type: SystemNullableVector3
Random rotation from starting rotation.
impulseDirection (Optional)
Type: SystemNullableVector3
Base direction vector to apply impulse (object must have physical body).
impulseDirectionJitter (Optional)
Type: SystemNullableVector3
Jitter vector to add on impulse direction vector.
minImpulseStrength (Optional)
Type: SystemNullableSingle
Min impulse force strength (must also set maxImpulseStrength).
maxImpulseStrength (Optional)
Type: SystemNullableSingle
Max impulse force strength (must also set minImpulseStrength).
See Also