private static void Main() { var universe = Universe.Instance; Simulation.Add(universe); Seeder.Seed(universe); Simulation.Simulate(universe); }
protected override void Because() { _sim = new IndividualSimulation().WithName("Tralala"); _organism = new Organism().WithName(Constants.ORGANISM); _sim.Add(_organism); _organ = new Organ().WithName("Liver"); _organism.Add(_organ); _entityPathResolver = new EntityPathResolverForSpecs(); }
public void Add <T>(ref T description, int otherBodyHandle) where T : IConstraintDescription <T> { var constraintHandle = simulation.Add(LocalBodyHandle, otherBodyHandle, ref description); ConstraintHandles.Add(constraintHandle); }