Skip to content

Incorrect collision result when using DynamicAABBTreeCollisionManager #505

Answered by lmontaut
lwygzh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lwygzh,
Thank you for checking out hppfcl!
The broadphase collision callback has a boolean field, done which tells whether or not the process of collision detection should continue or not.
When resetting the callback, you should therefore do:

callback.data.result.clear()
callback.data.done = False

I will do a PR on the devel branch to have a callback.data.clear() method which handles both clearing the collision result and the boolean.

Best,
Louis

Edit: This is the PR: #509
With it, you won't have to call clear for the callback's data as it will be automatically cleared by the broadphase manager when calling manager.collide(callback).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lmontaut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants