Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 1 Support › Points of a PolygonCollider

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6436

    florian.kieninger

    Hello,

     

    why is it only possible to set 8 Points to a PolygonCollider?

    If i set more than 8 i get a message: “Invalid number of vertices”

     

    In the Polygonitem it is possible to set more than 8.

     

    Greets,

    Florian

    #6455

    Alex
    Felgo Team

    Hi Florian,

    Box2D only allows a maximum of 8 vertices for a PolygonCollider by default. It is a very performance critical value that should not be increased (and if absolutely necessary only minimal). What would be your use case that demands more vertices?

    Cheers,
    Alex

    #6461

    florian.kieninger

    We implement a ceiling(It’ s a polygon fitting with the ground), which falls down after a certain time.

     

    We solved this problem.

    We generated 16 BoxCollider with a Repeater in one EntityBase =D

    We know, thats not a clean solution but it wasn’t possible to do this in another way ^^

     

    Greets,

    Florian

    #6463

    Alex
    Felgo Team

    As long as it works performance wise, it’s clean enough 😛

    And if you found a better solution, let us know 🙂

    Cheers,
    Alex

    #6464

    florian.kieninger

    Hello Alex,

     

    can u please add this information to the documentation, becuase this is never mentioned.

    Docu. of PolygonCollider “Contains a list of 3 or more vertices that make up the shape in a counter clockwise winding.”

     

    Thx,

    Florian

    #6491

    Alex
    Felgo Team

    Hi Florian,

    yes we will definitely add this to the docs 🙂

    Cheers, Alex

Viewing 6 posts - 1 through 6 (of 6 total)

RSS feed for this thread

You must be logged in to reply to this topic.