Trouble tracking an entity loaded by fromGltfAsync

I can load my model, and fly to camera to it thanks to a previous thread but setting

viewer.trackedEntity = model

doesn’t seem to work although it works with non async models. How do I set the viewer to keep tracking the model as it moves? Here’s a crude sandbox. The model changes position but isn’t tracked.

Kind of figured it out. The viewer needs to track an entity not a model. I’ll try creating an entity and setting the model to the loaded model from fromGltfAsync next but for now I just created another entity and set it’s position equal to the moving models and track that. Sorry for the hideous code.