public Vector3FP GetAimingLineFP() { float angle = 0; if (m_is_aiming_line_state) { if (m_aiming_line_trans == null) { return(Vector3FP.Zero); } angle = m_aiming_line_trans.eulerAngles.y - 90; } else { if (m_rotate_turret_trans == null) { return(Vector3FP.Zero); } angle = m_rotate_angle; } if (angle < 0) { angle = 360 + angle; } FixPoint radian = FixPoint.Degree2Radian(-FixPoint.CreateFromFloat(angle)); return(new Vector3FP(FixPoint.Cos(radian), FixPoint.Zero, FixPoint.Sin(radian))); }