struct
Eagle::Particles2D::Particle
- Eagle::Particles2D::Particle
- Struct
- Value
- Object
Overview
One live particle. Only needed with custom_update.
Defined in:
eagle/nodes/particles2d.crConstructors
Instance Method Summary
-
#alive? : Bool
True while the particle has life left.
-
#angular_velocity : Float32
Spin in radians per second.
-
#angular_velocity=(angular_velocity : Float32)
Spin in radians per second.
- #initialize
-
#life : Float32
Seconds left to live.
-
#life=(life : Float32)
Seconds left to live.
-
#max_life : Float32
Total lifetime in seconds.
-
#max_life=(max_life : Float32)
Total lifetime in seconds.
-
#position : Vec2
Position of the particle.
-
#position=(position : Vec2)
Position of the particle.
-
#rotation : Float32
Rotation in radians.
-
#rotation=(rotation : Float32)
Rotation in radians.
-
#seed : Float32
A random value from 0 to 1, fixed per particle, for per-particle variation.
-
#seed=(seed : Float32)
A random value from 0 to 1, fixed per particle, for per-particle variation.
-
#size : Float32
Current size multiplier.
-
#size=(size : Float32)
Current size multiplier.
-
#t : Float32
How far through its life the particle is, from 0 to 1.
-
#velocity : Vec2
Velocity in points per second.
-
#velocity=(velocity : Vec2)
Velocity in points per second.
Constructor Detail
Instance Method Detail
def seed=(seed : Float32)
#
A random value from 0 to 1, fixed per particle, for per-particle variation.