Forums > Jitter

Bug in Ghost Collision Detection?

January 3, 2013 | 6:19 pm

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. —
January 3, 2013 | 8:10 pm

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 collisions dictionary:

— Pasted Max Patch, click to expand. —

January 3, 2013 | 8:58 pm

Thank you! The sample patch supplied is working perfectly.

January 3, 2013 | 9:40 pm

some more info.
if you disable collisions on your (@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.

January 5, 2013 | 12:38 pm

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.

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > Jitter