Ejemplo n.º 1
0
		public PWorldBox(PPhysManager world, float x, float y, float w, float h) {
			this.build = false;
			this.manager = world;
			this.Set(x, y, w, h);
			this.thick = 1f;
			this.density.Set(1f);
		}
Ejemplo n.º 2
0
 public PWorldBox(PPhysManager world, float x, float y, float w, float h)
 {
     this.build   = false;
     this.manager = world;
     this.Set(x, y, w, h);
     this.thick = 1f;
     this.density.Set(1f);
 }
Ejemplo n.º 3
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;
	}
Ejemplo n.º 4
0
	public void SetPhysics(bool fix, PPhysManager man) {
		this._manager = man;
		this._fixed = fix;
		this.LimitWorld(_fixed);
		this.usePhysics = true;
	}