Closed GoogleCodeExporter closed 8 years ago
Likely a known issue introduced in recent Bullet 2.82.
https://github.com/erwincoumans/bullet3/issues/34
Can you revert to old behaviour?
resultCallback.m_flags |=
btTriangleRaycastCallback::kF_UseSubSimplexConvexCastRaytest;
Original comment by erwin.coumans
on 1 Mar 2014 at 1:38
That is for a single ray casting though right ?
What if you do dynamicsWorld->contactTest(frustrumCollisionObj, callback);
where callback is a class derived from btCollisionWorld::ContactResultCallback.
There is no flags to set in that case unless I am totally misunderstanding
something.
Original comment by xstamato...@gmail.com
on 1 Mar 2014 at 6:35
I skimmed your explanation, saw the word 'ray test. with a picture of ray
versus cylinder, hence the mis assumption. Re-opened, but cannot promise when I
have time to look at it. Why is the ray in the screenshot?
Original comment by erwin.coumans
on 1 Mar 2014 at 6:51
[deleted comment]
Its actually the frustrum convex hull, but because its really small in width (i
get the pixel coords and essentialy create a 10x10 pixel rectangle centered on
the mouse click) it looks like a ray.
I did quickly test it with ray casting though and it performs way better that
contactTest which really misses a lot of contacts all around the area of the
cylinder.
The ray casting also missed a couple but it seems that if you revert to the old
behaviour as you said you get them all.
Original comment by xstamato...@gmail.com
on 1 Mar 2014 at 7:09
Perhaps GJK or EPA fails with very long thin objects, indeed. Thanks for a
reproduction, it would be nice to fix it.
Original comment by erwin.coumans
on 1 Mar 2014 at 7:30
moved to github https://github.com/bulletphysics/bullet3/issues/53
Original comment by erwin.coumans
on 30 Mar 2014 at 4:47
Original issue reported on code.google.com by
xstamato...@gmail.com
on 1 Mar 2014 at 1:34Attachments: