Bug in Ghost Collision Detection?

Jan 3, 2013 at 6:19pm

Bug in Ghost Collision Detection?

Hey, I’m just working with the collision detection of the jit.phys.ghost object.
The jit.phys.ghost reports collisions with the worldbox or other objects properly but the duration displayed is always 0.

With the jit.phys.body object I don’t have this problem.
Am I missing an additional command you have to send to ghost?

– Pasted Max Patch, click to expand. –
#65893
Jan 3, 2013 at 8:10pm

hi imbie.
thanks much for catching this. looks like a bug slipped in with the latest version of the physics objects.
apologies for the inconvenience, we’ll have this fixed up for the next release.

for now, you can get the same info from the phys.world collisions dictionary:

– Pasted Max Patch, click to expand. –
#237308
Jan 3, 2013 at 8:58pm

Thank you! The sample patch supplied is working perfectly.

#237309
Jan 3, 2013 at 9:40pm

some more info.
if you disable collisions on your phys.world (@collisions 0, the default value), the phys.ghost collisions will function as expected.
this assumes you are only concerned with collisions on the phys.ghost.

#237310
Jan 5, 2013 at 12:38pm

13:21 : arrival on the forum to post about my problem.
13:22 : find this topic via keywords.
13:25 : my patch is completely functional.

This forum is a wonder !
Thanks a lot.

#237311

You must be logged in to reply to this topic.