how can i create a polygon shape collider of this

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
pbaesehc
Prole
Posts: 2
Joined: Thu Dec 01, 2022 8:23 am

how can i create a polygon shape collider of this

Post by pbaesehc »

drawing_circulos.png
drawing_circulos.png (1.75 KiB) Viewed 1500 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
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Re: how can i create a polygon shape collider of this

Post by darkfrei »

Reference link:
https://love2d.org/wiki/love.physics.newPolygonShape

So, subdivide your polygon to several convex polygons with max 8 vertices.
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
pbaesehc
Prole
Posts: 2
Joined: Thu Dec 01, 2022 8:23 am

Re: how can i create a polygon shape collider of this

Post by pbaesehc »

thank you so much
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests