Hitboxes
-
CreatiCode team, can you edit the convex hull hitboxes to be more accurate? thx!
-
By definition, a “convex hull” is a “convex” shape, which means it is a single shape with no holes inside it and no indents on its edge.
What you draw is a hole inside a shape, so it can not be supported.
The reason for that is it is much faster to test if 2 shapes are colliding (overlapping) if both of them are convex. If we allow holes inside them, then the computation will be much more complex and time-consuming.
Can you explain what you are trying to do a bit more? Maybe you can consider using 2 or 4 convex shapes instead?
-
@info-creaticode
Yes.
@s9205307-810c679a
You can make 2 hitboxes, one for collision, and one for colliding with objects that kill you. -
@catty is this even a weapon? why would it kill you? or is that just like in general
-
@jeffreyrb03-gmail Like Geometry Dash Spikes.
-
@catty makes sense
-
@info-creaticode Good suggestion! Can you teach me how to dot that please? thx
-
Can you explain what you are trying to use this for?
-
@info-creaticode I’m trying to use this to remake the game “Bad Piggies.” In the game, you can put the pig in a box with a hole! . I am trying to replicate that. Look at the image.
-
That’s an interesting game. It seems a box would be fine for the hitbox. Why do you need it to be a red frame like you have drawn here?
-
@s9205307-810c679a if you really wanna have a box in a box hitbox then why not use 4 box hitboxes:
-
That’s also a good option, if the hit box must have an empty square hole inside it.
Here is an example of how to do it using “compound shape”. You just need to draw the costume using 4 boxes:
https://play.creaticode.com/projects/670083d55689190abfe5461f
-
@info-creaticode Ahhh yes, thats pretty good