public PhysXSimulator() { CreateCoreAndScene(out _wrappedCore, out _wrappedScene); Configurator = new SimulatorConfigurator(this); Queries = new SimulatorQueries(this); ActorsFactory = new SimulatorRigidBodyFactory(this); ConstraintsFactory = new SimulatorConstraintsFactory(this); }
public DigitalRuneSimulator() { _wrappedSimulation = new Simulation(); ((MaterialPropertyCombiner)_wrappedSimulation.Settings.MaterialPropertyCombiner).RestitutionMode = MaterialPropertyCombiner.Mode.ArithmeticMean; ((MaterialPropertyCombiner)_wrappedSimulation.Settings.MaterialPropertyCombiner).FrictionMode = MaterialPropertyCombiner.Mode.ArithmeticMean; _wrappedSimulation.ForceEffects.Add(new Damping()); Configurator = new SimulatorConfigurator(this); Queries = new SimulatorQueries(this); ActorsFactory = new SimulatorRigidBodyFactory(this); ConstraintsFactory = new SimulatorConstraintsFactory(this); }