Polygon Shape with more than 8 vertices.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
D_K99
Prole
Posts: 6
Joined: Thu Nov 21, 2013 6:49 pm

Polygon Shape with more than 8 vertices.

Post by D_K99 »

Hello guys,
I have a question, I want to have a big polygon shape but in the wiki it says "This shape can have 8 vertices at most, and must form a convex shape."
So is it possible to do this anyway?
Thanks
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Polygon Shape with more than 8 vertices.

Post by bartbes »

You can attach multiple polygon shapes to the same body.
D_K99
Prole
Posts: 6
Joined: Thu Nov 21, 2013 6:49 pm

Re: Polygon Shape with more than 8 vertices.

Post by D_K99 »

Ok and how?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Polygon Shape with more than 8 vertices.

Post by bartbes »

Just use newFixture with the same body and different shapes.
D_K99
Prole
Posts: 6
Joined: Thu Nov 21, 2013 6:49 pm

Re: Polygon Shape with more than 8 vertices.

Post by D_K99 »

Oh ok thank you so much.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests