Is there a way to "cut" an object/body?

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
NoLifeKing
Prole
Posts: 1
Joined: Fri Sep 11, 2009 9:16 pm

Is there a way to "cut" an object/body?

Post by NoLifeKing »

Hi!

We're doing a game called ApeAttack ( https://sourceforge.net/projects/apeattack/ )

And we need to "cut" objects on collisions.

But from what I can see, there's no such possibility in LÖVE yet?

One solution (which I'm not sure I want to use) is to build the world of lots of small boxes and use our balls as bullets and delete all the shapes with the data "worldObject" or such.

Anyone else got some tips? :)
User avatar
zipperipper
Prole
Posts: 45
Joined: Thu Jan 14, 2010 7:59 pm
Location: UK

Re: Is there a way to "cut" an object/body?

Post by zipperipper »

i made this thing where you can cut through polygons, if you was to keep a table of points for the body, and then when you wanted to cut it, use a quick function to delete the old body and create 2 new ones from the point table (with cut points added), so it would fuck up on certain things when the polygon has inner angles over 180, but with a lot of alteration, it could work :P
Error 404, consciousness not found.
Post Reply

Who is online

Users browsing this forum: No registered users and 89 guests