コード例 #1
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;
 }
コード例 #2
0
 public IntPtr create(BulletDebugDraw obj)
 {
     handle = GCHandle.Alloc(obj);
     return(BulletDebugDraw_Create(drawLineStorage, reportErrorWarningStorage, GCHandle.ToIntPtr(handle)));
 }