I try to spawn two go from factory, with different scale.
But 3d physics not scaled. First screenshot. You see two boxes. One size box and five size box.
Second screenshot from inside of big box. You see that collisionobject have the same sizes.
function on_message(self, message_id, message, sender)
if(message_id==hashes.CONTROLLER_SPAWN_GEOMETRY) then
local wall_pos= vmath.vector3(0)
local scale = vmath.vector3(0)
for i,object in ipairs(world.map.data.geometry) do
wall_pos.x, wall_pos.y = object.x + 0.5 , object.y + 0.5
pprint(wall_pos)
scale.x , scale.y = object.width+5, object.height
local wall=factory.create("#factory", wall_pos,nil,{},(i-1)*5 + 1)
end
end
end