Function setPhysicsEngineFactory