public override void Collide(Engine engine, WorldCube otherCube, Vector3 direction) { if (direction != Vector3.UnitZ) { Move(engine, GridPosition + direction); } }
/// <summary> /// Runs when another cube tries to move onto this cube. /// </summary> public virtual void Collide(Engine engine, WorldCube otherCube, Vector3 direction) { }
public override void Collide(Engine engine, WorldCube otherCube, Vector3 direction) { if (direction != Vector3.UnitZ) Move(engine, GridPosition + direction); }