bugSGE Game Engine - Bugs: bug #42124, Collision detection in Circle...

 
 

bug #42124: Collision detection in Circle Popper example partly fails

Submitter:  Layla Marchant <onpon4>
Submitted:  Tue 15 Apr 2014 03:03:46 PM UTC
   
 
Category:  Pygame SGE Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 10 Jun 2014 03:37:39 PM UTC, comment #1: 

Fixed as of version 0.9.2.11.

The problem had nothing to do with collision detection. Instead, it had to do with iteration. Version 0.7.0 created a new list every time an object was destroyed, while by 0.8.0 that had been replaced with a use of list.remove. That caused a problem because the code that executed mouse click events was looping through this list. This and similar potential bugs with other destroy methods was fixed by making them create new copies of the lists and dictionaries rather than simply modifying them.

Layla Marchant <onpon4>
Group administrator
Tue 15 Apr 2014 03:03:46 PM UTC, original submission:  

This is a bug that was introduced at some point between versions 0.7.0 and 0.8.0; I believe it was when the collision detection got updated, but I'm not sure. What happens is, if you click on two circles at once, one of them will sometimes not pop. More specifically, calls to the collides method fail, seemingly randomly.

What's confusing, though, is that the collides method barely changed at all between these releases, and reverting those few changes doesn't fix the problem. Obviously, something external must be affecting the return value of collides, but after hours of investigating and testing, I can't for the life of me tell what it is.

In the latest Git revision, the collides method has been replaced with the new collision method, which is very different. The bug persists.

For now, I'm postponing fixing this bug until another example of it is seen, because I just don't know what exactly is going on.

Layla Marchant <onpon4>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by onpon4 (Submitted the item)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-06-10 onpon4 Open/ClosedOpen Closed
    2014-06-10 onpon4 StatusPostponed Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code