Unity5 Boxcast Rotation/ Orientation

How do you make a boxcast rotate and remain orientated to it’s parent game object? This is my code:

    float m_MaxDistance; Collider m_Collider; bool m_HitDetect; RaycastHit m_Hit;  void Start() { m_MaxDistance = 144.0f; }    void FixedUpdate(){  m_HitDetect = Physics.BoxCast(m_Collider.bounds.center, new Vector3(transform.localScale.x / 2, transform.localScale.y / 2, 0.5f), transform.forward,   out m_Hit, Quaternion.LookRotation(transform.forward), m_MaxDistance); }