-
- All Implemented Interfaces:
public final class Rotation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRotation.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Booleanenabledprivate final Floatspeedprivate final Floatvarianceprivate final Floatmultiplier2Dprivate final Floatmultiplier3D
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()by default true. final FloatgetSpeed()the rate at which the confetti will rotate per frame. final FloatgetVariance()the margin in which the rotationSpeed can differ to add randomness to the rotation speed of each confetti. final FloatgetMultiplier2D()Multiplier controlling the speed of the rotation around the center of the confetti. final FloatgetMultiplier3D()Multiplier controlling the 3D rotation of the confetti. -
-
Method Detail
-
getEnabled
final Boolean getEnabled()
by default true. Set to false to prevent the confetti from rotating
-
getSpeed
final Float getSpeed()
the rate at which the confetti will rotate per frame. Control the 2D and 3D rotation separately using multiplier2D and multiplier3D
-
getVariance
final Float getVariance()
the margin in which the rotationSpeed can differ to add randomness to the rotation speed of each confetti.
-
getMultiplier2D
final Float getMultiplier2D()
Multiplier controlling the speed of the rotation around the center of the confetti. Set this value to 0 to disable the 2D rotation effect.
-
getMultiplier3D
final Float getMultiplier3D()
Multiplier controlling the 3D rotation of the confetti.
-
-
-
-