Page 1 of 1
how can i create a polygon shape collider of this
Posted: Thu Dec 01, 2022 8:31 am
by pbaesehc
- drawing_circulos.png (1.75 KiB) Viewed 1883 times
Hi, i want to create a precise collider for this shape but dont know how to do it, can you give an advice please. Thanks!
im using love2d
Re: how can i create a polygon shape collider of this
Posted: Thu Dec 01, 2022 12:04 pm
by darkfrei
Reference link:
https://love2d.org/wiki/love.physics.newPolygonShape
So, subdivide your polygon to several convex polygons with max 8 vertices.
Re: how can i create a polygon shape collider of this
Posted: Mon Dec 12, 2022 10:55 am
by pbaesehc
thank you so much