dotnet-ad / dotnet-ad/Humper

Vector2 Math

Open
#2 0 comments 0 reactions 1 assignee Claimed by @aloisdeniel View on GitHub
bug
Dominant language
C#
Stars
125
Forks
18
PR merge metrics
No merged PRs in 30d

Description

https://github.com/aloisdeniel/Humper/blob/master/Sources/Humper/Hit.cs#L350

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

```XML






```

```Java
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));
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.