Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Yue

Developers
  • Content Count

    1,736
  • Joined

  • Last visited

Community Reputation

461 Excellent

About Yue

  • Birthday 11/04/1978

Profile Information

  • Gender
    Male
  • Location
    Colombia / Bogotá

Recent Profile Visitors

16,158 profile views
  1. Yue

    Editor WIP

    Will the external Lua script editor be launched from the editor?
  2. I am testing ragdoll, the problems I had the last time I tried this was that the rotation of the joints is set to global level and what I need is that they are set to global level when I assign them to the mesh so that the effect is effectively correct. That is to say that the knee joint rotates 90 degrees inward in local rotation and not global.
  3. https://media.giphy.com/media/oobNzX5ICcRZC/giphy.gif
  4. Let's see how we do with the ragdoll effect.
  5. How do I download the particle effect from steam?
  6. A search box option in Assets and Scene I think would be great
  7. A loading animation where a gear turns clockwise. And below it shows the total in percent of what is needed out of 100.
  8. CH={ value=nil, New=function(self) local this={} setmetatable(this,self) self.__index = self function this:Init() self.value = System:GetProperty("FS","true") end this:Init() return(this) end } h = CH:New() System:Print(h.value) --Return false. For some reason the System:GetProperty does not work.
  9. A more correct approach to object programming. CWorld= { world =nil, Create = function(self) this={} setmetatable(this,self) self.__index = self function this:Start() self.world = World:Create() end function this:GetWorld() return(self.world) end this:Start() return(this) end } local world1 = CWorld:Create() local world2 = CWorld:Create() System:Print(world1:GetWorld()) System:Print(world2:GetWorld())
  10. Ok, solved here. CWorld= { world =nil, Create = function(self) this={} setmetatable(this,self) self.__index = self function this:Start() self.world = World:Create() end this:Start() return(this) end } local world1 = CWorld:Create() local world2 = CWorld:Create() System:Print(world1.world) System:Print(world2.world)
  11. 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.
  12. I'm trying to understand this Lua class thing, apparently it's a static variable. Evidently it's the same world because I can't find a way to change it. So what I am doing is looking at the Lua documentation regarding tables, where although you can create objects, the term class does not exist, and what you do is to use a prototype of an object to create others.
×
×
  • Create New...