I'm trying to find the tangent point from a character's position to the side of any arbitrary shape in the world at a certain height.
To do this, I am using the btCollisionWorld's
to sweep a long cylinder along a circular path until it hits a certain object. However, I'm getting fairly bad results. I've posted several pictures of the problem I'm having. I'm happy to post code as well if you think it would help. Accuracy is more important than speed for this problem, so I'd be happy to make a duplicate
Code: Select all
btCollisionWorld::objectQuerySingle
that was more accurate if that's possible.
I've tried many different things including changing the sweeping cylinder radius, length, center point and starting position, and some have helped but it all seems a little arbitrary. Is this a known problem? Is there something I can do? I'm happy to attach code if you want, but I think the pictures are worth a thousand chars
You do not have the required permissions to view the files attached to this post.