#Picking a sprite from spritesheet according to entity's rotation instead of rotating a sprite?
9 messages · Page 1 of 1 (latest)
why not add your own component with a system which handles this case and updates the spritesheet index?
I also need to use rotation for rotating collision box (bevy_rapier2d's Collider) of the entity
you could react to the same component change and rotate the collider (or a child transform)
I guess I can figure that out with parenting. For now I'll stick to top-down view with prototype sprites that don't need any workarounds
What would really be the solution is to somehow disable the rotation affecting sprite at all
And then a system that selects the correct sprite for current rotation