private void UpdateDirection(CThucHanh pThucHanh) { float num = this.angleZ + 1.57079637f; num += pThucHanh.getAngleZ(); CAct.NormAngle(ref num); this.UpdateDirection(num); }
public void UpdateDirection(CThucHanh pThucHanh, float pAngleZ) { float num = pAngleZ + 1.57079637f; num += pThucHanh.getAngleZ(); CAct.NormAngle(ref num); this.UpdateDirection(num); }
public static float GetAngleZ(Vector3 addvector) { float num = (float)Math.Atan2((double)addvector.Y, (double)addvector.X); num -= 1.57079637f; CAct.NormAngle(ref num); return(num); }
private void Calc2() { CAct.NormAngle(ref this.Obj.angleZ); this.rAngleZ = CAct.GetAngleZ(this.topos - this.Obj.Position) - this.Obj.angleZ; CAct.NormAngle(ref this.rAngleZ); if (this.rAngleZ > 3.14159274f) { this.rAngleZ -= 6.28318548f; } }
private void Calc2() { CAct.NormAngle(ref this.myThucHanh.angleZ); this.rAngleZ = this.angleZ - this.myThucHanh.angleZ; CAct.NormAngle(ref this.rAngleZ); if (this.rAngleZ > 3.14159274f) { this.rAngleZ -= 6.28318548f; } CAct.NormAngle(ref this.myThucHanh.angleX); this.rAngleX = this.angleX - this.myThucHanh.angleX; CAct.NormAngle(ref this.rAngleX); if (this.rAngleX > 3.14159274f) { this.rAngleX -= 6.28318548f; } this.rCenterX = this.CenterX - this.myThucHanh.CenterX; this.rCenterY = this.CenterY - this.myThucHanh.CenterY; this.rcameraPosY = this.cameraPos.Y - this.myThucHanh.cameraPos.Y; }