Server job assigning logic, submarine movement syncing, submarine collision improvements, spawnpoints in levels
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
namespace FarseerPhysics.Common.Decomposition.Seidel
|
||||
{
|
||||
internal class Sink : Node
|
||||
{
|
||||
public Trapezoid Trapezoid;
|
||||
|
||||
private Sink(Trapezoid trapezoid)
|
||||
: base(null, null)
|
||||
{
|
||||
Trapezoid = trapezoid;
|
||||
trapezoid.Sink = this;
|
||||
}
|
||||
|
||||
public static Sink Isink(Trapezoid trapezoid)
|
||||
{
|
||||
if (trapezoid.Sink == null)
|
||||
return new Sink(trapezoid);
|
||||
|
||||
return trapezoid.Sink;
|
||||
}
|
||||
|
||||
public override Sink Locate(Edge edge)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user