0.8 physics derp

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
User avatar
The Burrito
Party member
Posts: 153
Joined: Mon Sep 21, 2009 12:14 am
Contact:

0.8 physics derp

Post by The Burrito »

I know 0.8 isn't released yet and I should be expecting it to fail on occasion but I've already upgraded In The Dark and the only major issue I have is (I think) with fixture deletion, when you call fixture:destroy() it seems to work, but it leaves behind ghost fixtures that occasionally cause things to happen and anger raycast calls.
I threw together a quick example, pressing a key alternates between creating and destroying the box, the raycasts let you see the "ghost" boxes.
I've been trying to figure out the cause of the issue but I'm not very familiar with the internal workings of box2D. Anyone know how this might be fixed?
Attachments
rayderp.love
(1.23 KiB) Downloaded 64 times
rayderp2.png
rayderp2.png (5.66 KiB) Viewed 1769 times
rayderp1.png
rayderp1.png (6.59 KiB) Viewed 1769 times
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 0.8 physics derp

Post by bartbes »

That is, indeed, one of the issues yet to be resolved.
User avatar
Ruirize
Prole
Posts: 20
Joined: Tue Dec 13, 2011 9:02 pm
Location: England
Contact:

Re: 0.8 physics derp

Post by Ruirize »

Might I add, that is a genius way to check what exactly is going on.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: 0.8 physics derp

Post by kikito »

I have no idea, but there is no harm in asking:

have you tried manually running the Lua garbage collector right after each deletion? It could be staying there just because of that.

I would try myself, but I'm stuck in 0.7.2 for now.
When I write def I mean function.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 0.8 physics derp

Post by bartbes »

Kikito, as I said, this is a known bug.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 215 guests