Inconsistent model position

I’ve bumped into a quirk that had me scratch my head for a few hours.

It seems this works:

  • A model inside a repositioned game object scale 100 inside a game object scale 1

But this doesn’t:

  • A model inside a repositioned game object scale 1 inside a game object scale 100

For some reason the model in this second scenario gets reset to 0,0 position.

Makes me wonder… why?

NestedModelsIssue.zip (8.7 KB)

The fix:

Related:

Unfortunately, the Defold team has not yet come to any decision on what to do with ‘scale_along_z’. If you make a project in 3d, this hidden option should be enabled manually through file editing. Without it, you’ll have a lot of surprising problems!

2 Likes

:exploding_head:

Thanks so much!

1 Like

This has been one of those topics that we’ve pushed in front of us for so long because we’re not happy with the solutions discussed so far. But we have now put it into our agenda for our team meet-up tomorrow:

7 Likes