Skip to content

Commit

Permalink
Add cuboid collision detect. (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alinshans authored and sunnycase committed Sep 20, 2017
1 parent 8120510 commit 572f882
Show file tree
Hide file tree
Showing 10 changed files with 1,333 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/MineCase.Algorithm/Collision.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using MineCase.Graphics;
using MineCase.Server.Game;
using MineCase.World;

namespace MineCase.Algorithm
{
public static class Collision
{
public static bool IsCollided(Shape shape1, Shape shape2)
{
return shape1.CollideWith(shape2);
}
}
}

0 comments on commit 572f882

Please sign in to comment.