Crate bevy_hourglass

Crate bevy_hourglass 

Source
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§

CircularArc
Configuration for a circular arc curve
CompositeCurve
A composite curve made up of multiple curve segments
Hourglass
Core component for an hourglass
HourglassConfig
Global configuration for the hourglass plugin
HourglassEmptyEvent
Event sent when an hourglass becomes empty
HourglassFlipStartEvent
Event sent when an hourglass starts flipping
HourglassMesh
Marker component for the mesh hourglass container entity
HourglassMeshBody
Marker component for the hourglass body
HourglassMeshBodyConfig
Configuration for the hourglass body (the glass part)
HourglassMeshBuilder
Builder for creating a mesh-based hourglass
HourglassMeshPlatesConfig
Configuration for the plates at the top and bottom of the hourglass
HourglassMeshSandConfig
Configuration for the sand inside the hourglass
HourglassMeshSandState
Component to track sand state for animations
HourglassPlugin
Plugin for adding hourglass functionality to Bevy apps
HourglassShapeBuilder
Builder for creating hourglass shape outlines using curves
SandSplash
Component that tracks sand splash state for an hourglass
SandSplashConfig
Configuration for sand splash animation
SandSplashParticle
Marker component for sand splash particles
SmoothTransition
Configuration for a smooth transition curve between two points

Enums§

BulbStyle
Different styles for hourglass bulbs
CircleQuadrant
Quadrants for quarter circle generation
CurveDirection
Direction of curve bending
HourglassMeshPlate
Marker component for the hourglass plates
HourglassMeshSand
Marker component for the hourglass sand
NeckStyle
Different styles for hourglass necks
SandBulb
Which bulb to generate sand for

Traits§

CurveGenerator
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