protected void StartPhysics(StructBlock block) { Remove(block); FallingSand fsBlock = new FallingSand((WorldManager)block.World, new AbsWorldCoords(block.Coords.WorldX + 0.5, block.Coords.WorldY + 0.5, block.Coords.WorldZ + 0.5)); fsBlock.Start(); block.World.PhysicsBlocks.TryAdd(fsBlock.EntityId, fsBlock); }
public static void m1(string[] args) { FallingSand o = new FallingSand(); string[] b = new string[] {"oxxxxooo", "xooooxxx", "..xx.ooo", "oooox.o.", "..x....."}; string[] r = o.simulate(b); for (int i = 0; i < r.Length; i++) { for (int j = 0; j < r[0].Length; j++) { Console.Write(r[i][j]); } Console.WriteLine(); } Console.Read(); }