Ive been trying to sort out my exporter to handle multiple objects nicely. however i've run into an issue where the object's offsets arent working properly.
from the below lua script I would expect an object in the middle, with four objects around it. problem is that the negative values aren't being respected and there are the south and east objects OK, but the north and west objects are in the centre. its driving me bonkers thinking that there's something simple I'm missing. Using spring 89.0
Code: Select all
--// Object Heirarchy File
--// Generated by Enetheru's Blender Export Script
test = {
pieces = {
[1] = {
name = "ROOT",
offset = {0.0, 0.0, 0.0},
[2] = {
name = "SOUTH",
offset = {0.0, 0.0, 8.0},
[3] = {
name = "EAST",
offset = {8.0, 0.0, 0.0},
[4] = {
name = "NORTH",
offset = {0.0, 0.0, -8.0},
[5] = {
name = "WEST",
offset = {-8.0, 0.0, 0.0},
},
},
},
},
},
},
radius = 10.0,
midpos = {0.0, 0.0, 0.0},
tex1 = "test1.dds",
--tex2 = "test2.dds",
numpieces = 5,
}
return test