public void LookAt(float target_x, float target_z) { var dz = target_z - this.z; var dx = target_x - this.x; if (dx == 0 && dz == 0) { return; } var nf = MathTools.Atan2ByDeg(dx, dz); this.SetFaceTo(nf); }