Skip to content

Attaching a text bar/health bar to sprites #7695

Answered by rparrett
srgfrog asked this question in Q&A
Discussion options

You must be logged in to vote

(Making some assumptions about how the rest of your message was going to go...)

Bevy's transform propagation is all-or-nothing. There's no way to to disable only rotation.

Here are a couple options:

  • Write a system that runs after bevy's transform propagation systems that resets the rotation/translation of the text.
  • Build your own simple hierarchy (e.g. a Follows(Entity) component) and write a system to propagate only the translation from the entity being followed.

Edit: The solution you attempted is interesting, and that sort of thing would generally work, but I'm not sure about the specific issue you're seeing with bevy_rapier.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@srgfrog
Comment options

Answer selected by srgfrog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants