{"repo":"sparten11740/bevy_health_bar3d","free":true,"listed":false,"github":"https://github.com/sparten11740/bevy_health_bar3d","clone":"git clone https://github.com/sparten11740/bevy_health_bar3d.git","description":"Health bar for bevy implemented as a billboard shader","language":"Rust","stars":46,"topics":["bevy","bevy-engine","bevy-game","game-development","healthbar"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"bevy health bar3d Health Bar plugin for Bevy supporting both 2D and 3D rendering. It can be used to render a bar for any value that can be represented as percentage. Can be freely sized, supports horizontal or vertical orientation, custom fore- and background colors, and an optional border with configurable thickness and color. Works with split-screens or layered cameras out of the box. Bevy Compatibility Version table Bevy Version Crate Version ------------ ------------: 0.18 = 3.9.0 0.17 = 3.7.0 0.16 3.5.0 0.15 3.4.0 0.14 3.3.0 0.13 3.2.0 0.12 2.0.0 0.11 1.2.0 0.10 1.1.0 0.9 1.0.0 Usage Implement the Percentage trait for the component you want to track and pass the type of your component to the plugin on instantiation: Spawn a mesh, the component to be tracked, and a BarSettings component to configure the look & feel of your bar. Note the generic parameter of BarSettings . It is used to associate the configuration with the component it is tracking and necessary to support multiple bars per entity. Offset Mode By default the bar offset is applied along the camera's up vector ( BarOffsetMode::CameraSpace ), which looks correct from the side but can cause the bar to drift away from its entity when the camera looks down from above. Set offset mode: BarOffsetMode::WorldSpace to offset along the world Y axis instead, keeping the bar anchored above the entity at any camera angle. See the offset mode example for a side-by-side comparison. Per-Entity Color Overrides Colors can also ","default_branch":null,"files":null,"tree":[],"storefront":"/r/sparten11740","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sparten11740/bevy_health_bar3d/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}