Is the math here correct? origin was modified before calculating thanDistance
I tried to load this TMX and build some walls. But my body always goes through wall#13 and stick to the bottom side of wall#9
map = new TmxMap("test.tmx");
world = new World(map.Width, map.Height);
body = world.Create(100, 100, 20, 20);
foreach(var obj in map.ObjectGroups["Obstacles"].Objects) {
walls.Add(world.Create((float)obj.X, (float)obj.Y, (float)obj.Width, (float)obj.Height));
}
https://github.com/aloisdeniel/Humper/blob/master/Sources/Humper/Hit.cs#L350
Is the math here correct?
origin
was modified before calculatingthanDistance
I tried to load this TMX and build some walls. But my body always goes through wall#13 and stick to the bottom side of wall#9