diff options
Diffstat (limited to '2d/_collisions/polygon_polygon.html')
-rw-r--r-- | 2d/_collisions/polygon_polygon.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/2d/_collisions/polygon_polygon.html b/2d/_collisions/polygon_polygon.html index 69938ff..9826ba4 100644 --- a/2d/_collisions/polygon_polygon.html +++ b/2d/_collisions/polygon_polygon.html @@ -290,9 +290,9 @@ }; <span class="code_keyword">struct</span> Edge { - <span class="code_keyword">Vector2</span> normal; - <span class="code_keyword">Vector2</span> start; - <span class="code_keyword">Vector2</span> end; + <span class="code_keyword">Vector2</span> normal; + <span class="code_keyword">Vector2</span> start; + <span class="code_keyword">Vector2</span> end; }; <span class="code_keyword">struct</span> SATResult { @@ -390,13 +390,13 @@ IntersectionResult getIntersection(ConvexPolygon* first, ConvexPolygon* second) <span class="code_keyword">return</span> ir; } - ir.intersect = true; - ir.relativeVelocity = first->body.velocity - second->body.velocity; - ir.collisionNormal = sat.minOverlapEdge->normal; + ir.intersect = true; + ir.relativeVelocity = first->body.velocity - second->body.velocity; + ir.collisionNormal = sat.minOverlapEdge->normal; ir.firstPointOfApplication = sat.overlapPoint - first->body.position; ir.secondPointOfApplication = sat.overlapPoint - second->body.position;; - <span class="code_keyword">return</span> ir; + <span class="code_keyword">return</span> ir; } </code></pre> </p> </section> |