CWorld= {
w =nil,
Create = function(self,wc)
this={}
setmetatable(this,self)
self.__index = self
self.w = wc
return(this)
end
}
local world1 = CWorld:Create(World:Create())
local world2 = CWorld:Create(World:Create())
System:Print(world1.w)
System:Print(world2.w)
I can't understand this, I go back to the same world, when they should be two different worlds. This has a problem because I am dealing with the OOP paradigm, that is to say that when I try to change the rendering world I will always have the same one, no matter the object.