Hey!
I'm new to using Box2D and C++ in general.
I'm trying to detect the body which was click on.
I've read that I need to do a world AABB query. But I'm not able to create an b2AABB object properly for this.
b2AABB aabb;
aabb.lowerBound = b2Vec2(1,0);
Gives me the error
error: ‘aabb’ does not name a type
aabb.lowerBound = b2Vec2(1,0);
Any help would be appreciated.
Thanks.
I'm new to using Box2D and C++ in general.
I'm trying to detect the body which was click on.
I've read that I need to do a world AABB query. But I'm not able to create an b2AABB object properly for this.
b2AABB aabb;
aabb.lowerBound = b2Vec2(1,0);
Gives me the error
error: ‘aabb’ does not name a type
aabb.lowerBound = b2Vec2(1,0);
Any help would be appreciated.
Thanks.