コード例 #1
0
    public override bool TestCollisionVSOBB(ObjectBoundingBoxHull2D other, ref Collision c)
    {
        // Same as above twive
        // first, test AABB vs max extents of OBB
        // then, multiply by OBB inverse matrix, do test again

        // Same as OBB vs OBB, but only project to ABB up and right normal
        // check the points


        return(other.TestCollisionVSAABB(this, ref c));
    }