A police officer has been described in court as being “unhinged” as he drove into the back of an electric motorcycle in Bognor Regis.