protected override bool Check(Vector3 position, Quaternion rotation, int mask = -1) { position += rotation * bounds.center; if (DeployVolume.CheckOBB(new OBB(position, bounds.size, rotation), (int)layers & mask, this)) { return(true); } return(false); }
protected override bool Check(Vector3 position, Quaternion rotation, int mask = -1) { position = position + (rotation * ((this.worldRotation * this.bounds.center) + this.worldPosition)); if (DeployVolume.CheckOBB(new OBB(position, this.bounds.size, rotation * this.worldRotation), this.layers & mask, this.ignore)) { return(true); } return(false); }