vecA=CoordinateConverter.coordPixelToWorld(pointA);
vecB=CoordinateConverter.coordPixelToWorld(pointB);
vecAToB=vecB.sub(vecA);
vecBToA=vecAToB.negate();
forces=new Vec2[]{new Vec2(-vecAToB.y,vecAToB.x),new Vec2(-vecBToA.y,vecBToA.x)};
for(Vec2 force:forces){
force.normalize();
force.mulLocal(FORCE_MAGNITUDE);//force length
}
float radius=CoordinateConverter.scalerPixelsToWorld(MAGNETIC_FIELD_BOUNDS);
FixtureDef recFixD=new FixtureDef();
FixtureDef cirFixDA=new FixtureDef();
FixtureDef cirFixDB=new FixtureDef();
CircleShape cirShapeA=new CircleShape();
CircleShape cirShapeB=new CircleShape();
PolygonShape recShape=new PolygonShape();
cirShapeA.m_radius=radius;
cirShapeB.m_radius=radius;
cirShapeA.m_p.set(CoordinateConverter.vectorPixelToWorld(position.delta(pointA)));
cirShapeB.m_p.set(CoordinateConverter.vectorPixelToWorld(position.delta(pointB)));
recShape.setAsBox(CoordinateConverter.scalerPixelsToWorld(getWidth()/2),radius, new Vec2(),(float)-getAngle());
recFixD.isSensor=true;
cirFixDA.isSensor=true;
cirFixDB.isSensor=true;