HelloPhysics tutorial texture question

In the HelloPhysics tutorial, the texture is load using TextureKey

TextureKey key2 = new TextureKey(“Textures/Terrain/Rock/Rock.PNG”);
Texture tex2 = assetManager.loadTexture(key2);

But in HelloMaterial, the texture is load using Texture

Texture cube1Tex = assetManager.loadTexture(“Interface/Logo/Monkey.jpg”);
cube1Mat.setTexture(“ColorMap”, cube1Tex);

So what is the different between TextureKey and Texture? In what circumstance using TextureKey and Texture?

As you see from the code you posted, when you want to set extended asset properties as in this example the mipmap generation you can use the AssetKey for that.