realbasic-games
[Top] [All Lists]

Re: Collision-Detection in SuperSpriteSurface

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Collision-Detection in SuperSpriteSurface
From: Nils Raschke <n4d2r at gmx dot de>
Date: Sat, 27 Aug 2005 11:07:36 +0200
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <5A091C59-FEA8-490F-B1C1-C521AE15A17A at gmx dot de> <37193C1F-7BF4-4329-B746-98B31561D2AD at tinrocket dot com>
Hi John,


For number 1, the size of the image is used to automatically create a 'quick bounds' that is used for coarse collision detection. This is calculated as an axis-aligned square of the minimal enclosing circle of the image. So yes, if you bounds is larger than the image area, or fall way outside of it, it will not be checked. It is not a bug but a design decision.

Ok, good to know, thanks!

For number 2, could you provide a sample project? Does the child sprite in question have it's own collision bounds? Has the group name of this bounds been 'registered' with the SuperSpriteSurface?

I will send you a sample project.

Thanks,
Nils
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>