Beispiel #1
0
 public void SetPhysics(bool fix, PPhysManager man)
 {
     this._manager = man;
     this._fixed   = fix;
     this.LimitWorld(_fixed);
     this.usePhysics = true;
 }
Beispiel #2
0
 public void SetPhysics(bool fix, float scale)
 {
     if (_manager == null)
     {
         this._manager = new PPhysManager(scale);
     }
     else
     {
         this._manager.scale = scale;
     }
     this._manager.SetEnableGravity(true);
     this._manager.SetStart(true);
     this._fixed = fix;
     this.LimitWorld(_fixed);
     this.usePhysics = true;
 }