[Papervision3D] Find optical collisions
LR
brancusi at gmail.com
Sat Jan 2 21:07:32 PST 2010
Brilliant man! It works great!
Thanks so much!
On Wed, Dec 30, 2009 at 3:46 PM, Steve D <kruass at gmail.com> wrote:
> The simplest and least elegant solution that comes to my sleep-deprived mind
> is to give each object its own layer and then, since layers are sprites, use
> flash's hit-test to find the ones that overlap.
>
> Maybe someone who's had a full night's rest can give you something more
> complex, with rays or stencil buffers. But not I, not now..
>
> Zzz...Zz.....
>
>
>
> On Wed, Dec 30, 2009 at 3:30 PM, LR <brancusi at gmail.com> wrote:
>>
>> Hey guys,
>>
>> I'm trying to figure out how to evenly and randomly space out object
>> in the scene. The problem I'm running into is overlapping items. Even
>> though nothing is colliding in space. To the user they still overlap.
>>
>> So say within a space of 1000x1000x1000. Some items would be in the
>> distance and some at z:0, but for the most part, none of them would
>> overlap.
>>
>> I currently have a helper method to find new empty spaces in the scene
>> but it doesn't account for overlapping due to depth. Does anyone
>> happen to know how to not only hittest but to see if objects would
>> visually overlap? Or is there someway to hittest against the final 2d
>> version of the object?
>>
>> Thanks!
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
More information about the Papervision3D
mailing list