private void analysisInteraction() {
		Enumeration<PhysObject3D> e = world.getObjects();
		int i = 0;
		PhysObject3D temp;
		while(e.hasMoreElements()) {
			temp = e.nextElement();
			if(temp instanceof HasMassInterface) {
				gravityInteraction[gravityInteraction[numObjs]] = i;
				gravityInteraction[numObjs]++;
				if(temp instanceof CanAttractInterface) {
					sourceGravity[sourceGravity[numObjs]] = i;
					sourceGravity[numObjs]++;
				}
			} else if(temp instanceof HasChargeInterface){
				electromagneticInteraction[electromagneticInteraction[numObjs]] = i;
				electromagneticInteraction[numObjs]++;
			}
			i++;
			objects.add(temp);
		}
	}