PxGjkQuery::proximityInfo()
produces inacurate results
#446
Unanswered
yiftahw-fsr
asked this question in
Q&A
Replies: 2 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @yiftahw-fsr, @slava-forsight |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
Hi!,
I'm using the PhysX SDK (tag
107.3-physx-5.6.1
) to perform collision calculations using theGJK
API with models loaded fromobj
files.during testing, a call to
PxGjkQuery::proximityInfo()
resulted in A, B points that are inside the actors, which causes a false positive scenario where I assume there is more distance to travel safely, but the objects are actually closer than the query reports.self contained issue: https://github.com/yiftahw-fsr/physx-gjk-issue
the issue (and the fix) described here are already commited in the tag I'm using, and the issue still exists.
Any help or suggestion would be appreciated.
Description:
the repo contains an example with 2 actors (
left
andright
)left
actor has 2 transformations, andright
actor has 1 transformation.left
with first transformation, call GJK, we get wrong results.left
's second transformation is shifted 0.1 mm in the X axis in comparison to first, but the answer differs in 0.29 mm.Numbers for comparison (numbers are in mm scale):
Manual calculation was done by checking what is the point of intersection between the vertices reported by
GJK
and the polygons/edges of the target polygon.I loaded the models to

Blender
and rendered the objects and the vertices.red: vertices from GJK, green: manual calculation.


we can see that if I scale down the spheres, the red spheres will be contained inside the polygons, while the greens stay on the surface.
Beta Was this translation helpful? Give feedback.
All reactions