PointClickEngine::Graphics::Particles::Particle
Inherits Reference < Object
Individual particle with advanced properties
Constructors
new(position : RL::Vector2, velocity : RL::Vector2, size : Float32, color : RL::Color, lifetime : Float32)
SourceInstance methods
acceleration
Sourceacceleration=(acceleration : RL::Vector2)
Sourceage
Sourceage=(age : Float32)
Sourcebounce_factor
Sourcebounce_factor=(bounce_factor : Float32)
Sourcecollision_enabled
Sourcecollision_enabled=(collision_enabled : Bool)
Sourcecolor
Sourcecolor=(color : RL::Color)
Sourcedraw_with_context(context : PointClickEngine::Graphics::RenderContext)
Draw with render context (for culling)
end_color
Sourceend_color=(end_color : RL::Color)
Sourceend_size
Sourceend_size=(end_size : Float32)
Sourcefade_in_time
Sourcefade_in_time=(fade_in_time : Float32)
Sourcefade_out_time
Sourcefade_out_time=(fade_out_time : Float32)
Sourcereset(position : RL::Vector2, velocity : RL::Vector2, size : Float32, color : RL::Color, lifetime : Float32)
Reset particle for pooling
rotation
Sourcerotation=(rotation : Float32)
Sourcerotation_speed
Sourcerotation_speed=(rotation_speed : Float32)
Sourcestart_color
Sourcestart_color=(start_color : RL::Color)
Sourcestart_size
Sourcestart_size=(start_size : Float32)
Sourcetexture_rect
Sourcetexture_rect=(texture_rect : RL::Rectangle | Nil)
Sourcevelocity
Sourcevelocity=(velocity : RL::Vector2)
Source