Example #1
0
 public BEPUikScene(BEPUikSceneDefinition definition, UpdateTimer timer)
 {
     this.timer = timer;
     this.name  = definition.Name;
     factory    = new BEPUIkFactory(this);
     updater    = new BEPUikSceneUpdater(this);
     timer.addBackgroundUpdateListener("Rendering", updater);
     rootSolver = new BEPUikSolver(definition.RootSolverDefinition);
     namedSolvers.Add(rootSolver.Name, rootSolver);
     foreach (var childSolver in rootSolver.ChildSolvers)
     {
         namedSolvers.Add(childSolver.Name, childSolver);
     }
 }
Example #2
0
 public unsafe BulletScene(BulletSceneDefinition definition, UpdateTimer timer)
 {
     callbackHandler = new CallbackHandler();
     bulletScene     = callbackHandler.create(this, definition);
     this.timer      = timer;
     this.name       = definition.Name;
     timer.addBackgroundUpdateListener("Rendering", this);
     factory                    = new BulletFactory(this);
     debugDraw                  = new BulletDebugDraw();
     performanceName            = String.Format("BulletScene {0} Background", name);
     Active                     = true;
     InternalTimestep           = definition.InternalTimestep;
     SolverIterations           = definition.SolverIterations;
     AutoSynchronizeAfterUpdate = true;
 }