public PIDControllerRot(GameObject part, float p, float i, float d) { this.part = part; rBody = part.GetComponent <Rigidbody>(); headingController = new VectorPid(p, i, d); //headingController = new VectorPIDValueLogger(p, i, d , part.name); }
/// <summary> /// factor is in this case (1,0,1) /// </summary> public PIDControllerVel(GameObject part, float p, float i, float d, Vector3 factor, float maxForce) { this.part = part; rBody = part.GetComponent <Rigidbody>(); pid = new VectorPid(p, i, d); //pid = new VectorPIDValueLogger(p, i, d , part.name); this.factor = factor; this.maxForce = maxForce; }