Forums

OverviewV-Play 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
    V-Play 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
    V-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support