Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[request] Adding accessor to b2Fixture for "m_aabb". #5

Closed
GoogleCodeExporter opened this issue Apr 10, 2015 · 2 comments
Closed

[request] Adding accessor to b2Fixture for "m_aabb". #5

GoogleCodeExporter opened this issue Apr 10, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

After performing a world-query and given the returned fixture-set I'd like
to perform a further check to cull fixtures that are not completely
encapsulated by the AABB. To do this quickly, I'd like to gain access to
the fixtures' AABB.

Therefore it would be very handy to be able to gain read-access to the
synchronized AABB for a fixture directly with something like:

inline const b2AABB& b2Fixture::getAABB( void ) const
{
    return m_aabb;
}

I have made this modification but it'd be great to have it in the trunk.

Thanks in advance!

Original issue reported on code.google.com by melv....@gmail.com on 18 Aug 2009 at 6:46

@GoogleCodeExporter
Copy link
Author

I need to think about this. There may be places where you access the fixture 
where the 
AABB is old and wrong.

Original comment by erinca...@gmail.com on 24 Aug 2009 at 7:49

@GoogleCodeExporter
Copy link
Author

Instead you should access the shape and compute a fresh AABB. This will 
guarantee that 
you get the correct AABB, assuming you supply the correct transform.

Original comment by erinca...@gmail.com on 19 Sep 2009 at 8:11

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant