public static rectCollision ( |
||
a | ||
aRot | float | |
b | ||
bRot | float | |
origin | Point | |
Résultat | bool |
public static bool rectCollision(Rectangle a, float aRot, Rectangle b, float bRot, Point origin)
{
Vector2[] aVerts = rectVerts(a, aRot, origin + a.Center);
Vector2[] bVerts = rectVerts(b, bRot);
return convexCollision(aVerts, a.Center.ToVector2(), bVerts, b.Center.ToVector2(), false, 3);
}
VectorMath::rectCollision ( |