0 Favourites

Collisions polygons DO have decimals!

  • While setting up physics for some objects in my game, it took me a while to figure out why piles of objects would always fall, even with perfectly "flat" collision polygons coordinates...

    And that's because collision vertex DO have decimals and they're not shown at all in the UI, so can we please have whether a decimal display, or snapping to round numbers?

    If you look closely, you can see that the lines at not exactly flat, but it's hard to see really, and I doubt it would be perfectly flat anyway

    Here is a capx to illustrate that.

    The green and yellow boxes are placed exactly the same way

    Green boxes have a "perfect" collision polygon, with the automatic detection

    Yellow boxes have the same collision vertex coordinates, as far as the UI can tell, but in fact there are decimals, as I placed them with the mouse

    Green boxes will stand and yellow boxes will fall

    Collision.capx

    For now I guess I will always move the vertex with the keyboard arrows, but whether a snap or real decimals are necessary here I believe

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Yeah if you zoom in very closely and move the collision polygon, it can be placed midway through the pixels. I second this suggestion.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
106 35,967
Syazanie Amirin's avatar
Syazanie Amirin
Unread hot topic
99 10,136
karshinkoff's avatar
karshinkoff
Unread hot topic
56 4,729
MPPlantOfficial's avatar
MPPlantOfficial