Local Transform not assigned for Linked Models?

Hello dear monkeys,

I created a scene with some models. Most of the models I linked into SceneComposer to the scene. Others I added directly to the scene. But I noticed something:

For linked models local transform (location, rotation and scale) is not assigned, even though I moved the linked models all around the scene. I made a test and for local Translation I always get (0.0,0.0,0.0) and for scale (1.0,1.0,1.0) via System.out.println();
For added models I get the correct translation, rotation and scale. But in the end all (linked as well as added models) appear at the position where I placed them in the SceneComposer, but it seems like the logical objects (spatials) aren’t created correctly ???

That’s the first time that I really noticed that. But why is this for linked models? Is this a bug? Is there a way to solve that problem without replacing all linked models with “added” models?

Greetings,
Domenic

Just translate the LinkedNode, not the Spatial it links. As the LinkedNode loads the model to attach it it loads all properties of the Spatial, including its translation.

Hey @normen, I am translating the LinkedNode. I guess you only can translate the LinkedNode.

You say that the model appears at the correct location but you also say it has to translation. One of these things can’t be. How do you determine the translation?

Okay I think I got it now :slight_smile:
If I link a model into scene and I want to access that model into code to get translation, rotation, scale etc. then I have to look for those like this:

if (spatial instanceof AssetLinkNode) {
// your code
}

It is so obious actually, but I didn’t get it, sorry :wink:

Anyway, thanks @normen for your help :kissing_heart: