I add two child game objects to a game object, and set the positions respectively as following:
I found X position and Y position work as expected, but Z position not. These two child objects seem have exactly same Z position for this case.
I add two child game objects to a game object, and set the positions respectively as following:
I found X position and Y position work as expected, but Z position not. These two child objects seem have exactly same Z position for this case.
I am pretty sure that z-value must be between 0 and 1 (edit it’s actually 1 and -1).
Remember that aside from 0.1, you can use values like 0.12, 0.251, etc.
This is only true for the default render script and it only affects what’s visible. You can change it by using a custom render script or one of the camera extensions from the asset portal.
Edit: And as Sicher said, it’s between -1 and 1.
It’s between -1 and 1.
Hmm!! Well then it looks like there’s some other problem here
What’s the position of the models in the game objects?
That’s a good question. In 3D games, is the z-position related to the actual location, or just the order of the render?
Actual position, but visual components like sprites and models have individual positions inside their game object. The final position is a sum of those positions.
Try to set a different material (such as the built in model material) and see if it makes a difference in how the z position of the models look.
This is rendered using my PBR rendering pipeline, z component of models’ position is correctly handle, and we verified this with root objects. The problem here is children is receiving same z value, their own local translation on z axis has no effect. There may be something wrong in model batching.
Ok, I’ll do a test tomorrow and see if I can reproduce the problem.
Seems the parent game object scale does not work properly on child game object’s Z position (works fine on X/Y position), I will do more tests and update later.
As @joshua.winter find out, the real problem is scale, not translation. The scale on parent node scale children’s size, but not their offset on Z axis. If we scale children’s position’s Z component with parent’s Z scale, everything looks fine.
Seems the batching system ignore Z scale for model as it did for sprites, which is incorrect.
Aha, yes. That is a known issue that we have in the backlog. Thanks!
Hmmm, is there any plan to fix this?
Yes. It’s in the backlog. Here’s more info: Scale Along Z for collections
EDIT: Note that the collection setting is not exposed in editor 2. It’s unchecked by default but you can set it in the collection file by adding “scale_along_z: 1”.
I tried to add this setting to my collection file, but it seems not working…
Here is my collection file with that setting:
name: "mahjong"
scale_along_z: 1
instances {
id: "char01"
prototype: "/res/models/char/char01.go"
position {
x: -99999.0
y: -99999.0
z: -99999.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 0.0
y: 0.0
z: 0.0
}
}
collection_instances {
id: "camera"
collection: "/res/camera/camera.collection"
position {
x: 0.0
y: 200.0
z: 200.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
collection_instances {
id: "point_light"
collection: "/res/lighting/point_light.collection"
position {
x: 0.0
y: 210.0
z: 50.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
scale_along_z: 0
embedded_instances {
id: "go"
children: "table"
data: "components {\n"
" id: \"mahjong_gui\"\n"
" component: \"/game/mahjong/mahjong.gui\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"components {\n"
" id: \"mahjong\"\n"
" component: \"/game/mahjong/mahjong.script\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo01\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/bamboo/bamboo01.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo02\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/bamboo/bamboo02.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo03\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/bamboo/bamboo03.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo04\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/bamboo/bamboo04.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo05\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/bamboo/bamboo05.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo06\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/bamboo/bamboo06.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo07\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/bamboo/bamboo07.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo08\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/bamboo/bamboo08.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo09\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/bamboo/bamboo09.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_char01\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/char/char01.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_char02\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/char/char02.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_char03\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/char/char03.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_char04\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/char/char04.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_char05\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/char/char05.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_char06\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/char/char06.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_char07\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/char/char07.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_char08\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/char/char08.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_char09\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/char/char09.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_dot01\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/dot/dot01.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_dot02\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/dot/dot02.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_dot03\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/dot/dot03.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_dot04\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/dot/dot04.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_dot05\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/dot/dot05.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_dot06\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/dot/dot06.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_dot07\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/dot/dot07.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_dot08\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/dot/dot08.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_dot09\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/dot/dot09.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_bamboo\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/flower/bamboo.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_chrysanths\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/flower/chrysanths.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_orchid\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/flower/orchid.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_plum\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/flower/plum.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_autumn\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/season/autumn.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_spring\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/season/spring.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_summer\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/season/summer.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_winter\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/season/winter.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_east\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/wind/east.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_green\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/wind/green.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_north\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/wind/north.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_red\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/wind/red.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_south\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/wind/south.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_west\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/wind/west.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"factory_white\"\n"
" type: \"factory\"\n"
" data: \"prototype: \\\"/res/models/wind/white.go\\\"\\n"
"load_dynamically: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
""
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
embedded_instances {
id: "sun"
data: "components {\n"
" id: \"directional_light\"\n"
" component: \"/res/lighting/directional_light.script\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
""
position {
x: 180.0
y: 854.0
z: 0.0
}
rotation {
x: 0.33036608
y: 0.24321035
z: -0.088521324
w: 0.90767336
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
embedded_instances {
id: "table"
children: "east_wall"
children: "north_wall"
children: "south_wall"
children: "west_wall"
data: ""
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
embedded_instances {
id: "east_wall"
data: ""
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
embedded_instances {
id: "south_wall"
data: ""
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
embedded_instances {
id: "west_wall"
data: ""
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
embedded_instances {
id: "north_wall"
data: ""
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
Looks like further down in the collection file you have another line scale_along_z: 0
which might override the first occurrence.
Yes, there is another line which I did not notice, thanks for the help!