![]() |
Cornell Cocos
Cornell Extensions to Cocos2d
|
Public Member Functions | |
| QueryProxy () | |
| bool | ReportFixture (b2Fixture *fixture) override |
Public Attributes | |
| std::function< bool(b2Fixture *fixture)> | onQuery |
A lightweight b2QueryCallback proxy.
This class allows us to replace the listener class with a modern closure.
|
inline |
Creates a new query proxy
|
inlineoverride |
Returns false to terminate an AABB query
This function is called for each fixture found in the query AABB.
| fixture | the fixture selected |
| std::function<bool(b2Fixture* fixture)> QueryProxy::onQuery |
Returns false to terminate an AABB query
This function is called for each fixture found in the query AABB.
| fixture | the fixture selected |
1.8.10