Expand description
§Bevy Hourglass
A simplified hourglass plugin for Bevy applications.
This plugin allows you to spawn hourglasses in Bevy games/apps. Hourglasses can be customized in terms of appearance, size, and behavior.
Structs§
- Circular
Arc - Configuration for a circular arc curve
- Composite
Curve - A composite curve made up of multiple curve segments
- Hourglass
- Core component for an hourglass
- Hourglass
Config - Global configuration for the hourglass plugin
- Hourglass
Empty Event - Event sent when an hourglass becomes empty
- Hourglass
Flip Start Event - Event sent when an hourglass starts flipping
- Hourglass
Mesh - Marker component for the mesh hourglass container entity
- Hourglass
Mesh Body - Marker component for the hourglass body
- Hourglass
Mesh Body Config - Configuration for the hourglass body (the glass part)
- Hourglass
Mesh Builder - Builder for creating a mesh-based hourglass
- Hourglass
Mesh Plates Config - Configuration for the plates at the top and bottom of the hourglass
- Hourglass
Mesh Sand Config - Configuration for the sand inside the hourglass
- Hourglass
Mesh Sand State - Component to track sand state for animations
- Hourglass
Plugin - Plugin for adding hourglass functionality to Bevy apps
- Hourglass
Shape Builder - Builder for creating hourglass shape outlines using curves
- Sand
Splash - Component that tracks sand splash state for an hourglass
- Sand
Splash Config - Configuration for sand splash animation
- Sand
Splash Particle - Marker component for sand splash particles
- Smooth
Transition - Configuration for a smooth transition curve between two points
Enums§
- Bulb
Style - Different styles for hourglass bulbs
- Circle
Quadrant - Quadrants for quarter circle generation
- Curve
Direction - Direction of curve bending
- Hourglass
Mesh Plate - Marker component for the hourglass plates
- Hourglass
Mesh Sand - Marker component for the hourglass sand
- Neck
Style - Different styles for hourglass necks
- Sand
Bulb - Which bulb to generate sand for
Traits§
- Curve
Generator - Trait for generating curve segments
Functions§
- generate_
sand_ outline - Generate sand shape points using the same curve system with smooth fill line interpolation
- spawn_
mesh_ hourglass_ with_ flip - Spawn a mesh-based hourglass with flip configuration
- spawn_
mesh_ hourglass_ with_ timer - Spawn a mesh-based hourglass with automatic timing and default configuration
- spawn_
styled_ mesh_ hourglass - Create a hourglass with a specific bulb and neck style
- sync_
mesh_ hourglass_ with_ timer - System to sync Hourglass component state with HourglassMeshSandState
- update_
mesh_ hourglass_ sand - System to update sand meshes when fill percentage changes using the new curve system
- update_
sand_ fill_ percent - Update sand fill percentage
Type Aliases§
- Point2D
- A 2D point