blaze.collision.Collision

Authors:
Blaze team, see AUTHORS file

Maintainers:
Mason Green (zzzzrrr)

License:
zlib/png license

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any source distribution.

bool poly2poly (Polygon poly1, Polygon poly2, ref Contact[] contacts);
Collide poly shapes together.

int findMSA (Polygon poly, Axis [] axes, ref double min_out);
Find the minimum separating axis for the give poly and axis list.

bool findVerts (ref Contact[] contacts, Polygon poly1, Polygon poly2, Vector2D n, double dist);
Add contacts for penetrating vertexes.

static bool circle2circle (Circle circle1, Circle circle2, ref Contact[] contacts);


bool circle2poly (Circle circle, Polygon poly, ref Contact[] contacts);
Circle, polygon interstion test

bool circle2circleQuery (Vector2D p1, Vector2D p2, double r1, double r2, ref Contact[] contacts);
Add contact points for circle to circle collisions.

Used by several collision tests.

Page was generated with on Tue Feb 26 16:08:46 2008