Flipping collision shapes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Cedrei


I am making a game where there is this swordfish that chases the player, and when it gets upside down it is flipped to always be right side up. I have managed to get it to work well, with one exception - the collision shapes aren’t uniform with the swordfish (for example, only the “sword” deals damage to the player). From googling around a bit it seems to be pretty hard to dynamically move/scale the collision shapes? What would be the best way to go about this so that the hitboxes would work even when the swordfish is flipped?

I did not understand. Move collision body with collision shape doesent seems so complex?

Zippelin | 2019-01-17 20:15