Skip to content
Snippets Groups Projects
Commit 7604f44a authored by Leon Grothus's avatar Leon Grothus
Browse files

smaller fixes

parent 4ee01d60
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,7 @@ class Rigidbody(Component):
def check_circle_polygon_collision(self, other: PolygonCollider) -> tuple:
for i in range(len(other.mesh.points)):
p1: Vector2 = other.mesh.points[i]
p2: Vector2 = other.mesh.points[(i + 1) % len(other.mesh.points)]
edge: Vector2 = p2 - p1
edge_length: float = edge.length()
......
{"scoreboard": {"Player": 6975}}
\ No newline at end of file
{"scoreboard": {"Player": 11095}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment