Hello,
I am seeing strange results from b2World::Query. I have a landscape made up of ~300 triangles. They are all attached to the ground body. They are all within ~30 metres of the origin. When I query for shapes near a position at (say) (10, 0.5) I get back shapes (tris) near (10,10.5). As I move the query position around the tris returned seem to be consistently around 10 metres above it.
I was wondering if I was setting up the landscape wrong. All 300 landscape tris are added to the ground body. Is this an approach that breaks broad phase processing? Should I partition the tris on a grid basis and have a separate body for each grid square?
Regards,
Patrick Byrne
I am seeing strange results from b2World::Query. I have a landscape made up of ~300 triangles. They are all attached to the ground body. They are all within ~30 metres of the origin. When I query for shapes near a position at (say) (10, 0.5) I get back shapes (tris) near (10,10.5). As I move the query position around the tris returned seem to be consistently around 10 metres above it.
I was wondering if I was setting up the landscape wrong. All 300 landscape tris are added to the ground body. Is this an approach that breaks broad phase processing? Should I partition the tris on a grid basis and have a separate body for each grid square?
Regards,
Patrick Byrne