I'm trying to find the (approximate) boundaries of a simple game object created from a tile map.
I tried the following but it just returns a single point:
What is wrong here? Is there really no simpler way of doing this?
I tried the following but it just returns a single point:
B4X:
private Sub BodyAABB(b As B2Body) As B2AABB
Dim tr As B2Transform
tr.Initialize
Dim AABB As B2AABB
AABB.Initialize
b.FirstFixture.Shape.ComputeAABB(AABB, tr)
Return AABB
End Sub
What is wrong here? Is there really no simpler way of doing this?