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); }
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; }
public void SetPhysics(bool fix, PPhysManager man) { this._manager = man; this._fixed = fix; this.LimitWorld(_fixed); this.usePhysics = true; }