This is already made; If you use a recent release and look into the EV-Hybrid plugin there is a 'e_vehicle_in_wheel_motor.asy' which contain wheel mounted motors. If you want to use it as body mounted you will need to physically move the motors inboard and change the communicators to accept halfshafts.