Not detecting object's while protecting pet(maybe pt member too)

its not detecting/rotating around objects
when trying to protect pet or pt member…