Jump to content

Yue

Members
  • Posts

    2,303
  • Joined

  • Last visited

Everything posted by Yue

  1. function this:CreateSprings() --this:CreateSpring( this.springs[0], this.chassis ) for s = 0, 3 do this:CreateSpring( this.springs[s], this.chassis ) end end This yes work. function this:CreateSprings() --this:CreateSpring( this.springs[0], this.chassis ) for s = 0, 3 do this:CreateSpring( this.springs[0], this.chassis ) end end Any suggestions?
  2. The rotation gizmo is usually the same, you just don't move the object anymore but when you select an axis, it rotates the selected object. It could be a mistake, and it's time to report it. To use the dlc you go to steam and install them, or equally in the icon of the box in the bar of objects, to the being already bought you can install them without problems.
  3. Yue

    Car System

    Progress is evident, trial and error, this in the end tires, but I have learned new things. I don't think I'll ever play a game, but the little things I do are like filling out a crossword puzzle. MY car would never work, because I made it very big and as a measure now I have the height of character controller. -- Pivots Springs. Script.pSpring1 = nil --entity "Pivot Spring 1 :" Script.pSpring2 = nil --entity "Pivot Spring 2 :" Script.pSpring3 = nil --entity "Pivot Spring 3 :" Script.pSpring4 = nil --entity "Pivot Spring 4 :" -- Mesh Wheels. Script.mWheel1 = nil --entity "Mesh Wheel 1 :" Script.mWheel2 = nil --entity "Mesh Wheel 2 :" Script.mWheel3 = nil --entity "Mesh Wheel 3 :" Script.mWheel4 = nil --entity "Mesh Wheel 4 :" -- Classes. import("Scripts/Vehicle/Classes/vehicle.lua") vel = 10 function Script:Start() self.jeep = vehicle.New() -- Springs. self.jeep:CreateSpring( self.pSpring1, self.entity ) self.jeep:CreateSpring( self.pSpring2, self.entity ) self.jeep:CreateSpring( self.pSpring3, self.entity ) self.jeep:CreateSpring( self.pSpring4, self.entity ) -- Weels. self.llanta1 = self.jeep:CreateWheel( self.pSpring1, self.mWheel1 ) self.llanta2 = self.jeep:CreateWheel( self.pSpring2, self.mWheel2 ) self.llanta3 = self.jeep:CreateWheel( self.pSpring3, self.mWheel3 ) self.llanta4 = self.jeep:CreateWheel( self.pSpring4, self.mWheel4 ) end local vel = 0 function Script:UpdateWorld() if Window:GetCurrent():KeyDown(Key.J) then self.entity:AddForce(0,500*6,0) end if Window:GetCurrent():KeyDown(Key.X) then self.llanta1:SetAngle(self.llanta1:GetAngle() - 100 ) self.llanta2:SetAngle(self.llanta2:GetAngle() - 100 ) self.llanta3:SetAngle(self.llanta1:GetAngle() - 100 ) self.llanta4:SetAngle(self.llanta1:GetAngle() - 100 ) if vel < 2000 then vel = vel + 10 end else vel = 0 end self.llanta1:SetMotorSpeed(vel) self.llanta2:SetMotorSpeed(vel) self.llanta3:SetMotorSpeed(vel) self.llanta4:SetMotorSpeed(vel) System:Print(vel) end TEMP 10_05_2019 0_02_46.mp4
  4. Script.vel = 10 function Script:UpdateWorld() --self.suspT0:EnableMotor() local ventana = Window:GetCurrent() if ventana:KeyDown(Key.J) then self.entity:AddForce(0,25000,0) end self.vel = self.vel + 1000000 self.llanta:EnableMotor() self.llanta:SetMotorSpeed(self.vel) self.llanta:SetAngle(self.llanta:GetAngle()-100) self.llanta1:EnableMotor() self.llanta1:SetMotorSpeed(self.vel) self.llanta1:SetAngle(self.llanta:GetAngle()-100) end TEMP 09_05_2019 0_41_55.mp4
  5. -- Clases. import("Scripts/Vehiculo/Clases/vehiculo.lua") -- Suspención. --*************** -- Ejes traseros. Script.ejeAmT1 = nil --entity "Eje T1" Script.ejeAmT2 = nil --entity "Eje T2" -- Ejes delanteros. Script.ejeAmF1 = nil --entity "Eje F1" Script.ejeAmF2 = nil --entity "Eje F2" -- Ejes Dirección llantas delanteras. Script.ejeDir1 = nil --entity "Eje DF1" Script.ejeDir2 = nil --entity "Eje DF2" -- Llantas Traseras. Script.llantaT1 = nil --entity "Rueda T1" Script.llantaT2 = nil --entity "Rueda T2" -- Llantas Delanteras. Script.llantaF1 = nil --entity "Rueda F1" Script.llantaF2 = nil --entity "Rueda F2" function Script:Start() -- Se crea el objeto jeep. jeep = vehiculo:New() -- Se crean los amortiguadores traseros. jeep:InitSusp(self.ejeAmT1,self.entity) jeep:InitSusp(self.ejeAmT2,self.entity) -- Se crean los amortiguadores delanteros. jeep:InitSusp(self.ejeAmF1,self.entity) jeep:InitSusp(self.ejeAmF2,self.entity) -- Se crea los motores ruedas Traseras. jeep:InitMotorRuedas( self.llantaT1, self.ejeAmT1) jeep:InitMotorRuedas( self.llantaT2, self.ejeAmT2) -- Se crea los motores ruedas Delanteras. jeep:InitMotorRuedas( self.llantaF1, self.ejeDir1 ) jeep:InitMotorRuedas( self.llantaF2, self.ejeDir2 ) -- Se crea los motores de dirección de las llantas frontales. jeep:InitMotorDir( self.ejeDir1, self.ejeAmF1) jeep:InitMotorDir( self.ejeDir2, self.ejeAmF2) end function Script:UpdateWorld() --self.suspT0:EnableMotor() local ventana = Window:GetCurrent() if ventana:KeyDown(Key.J) then self.entity:AddForce(0,25000,0) end end This Script.
  6. Some suggestion, I don't understand this mistake.
  7. Yue

    Car System

    --#********************************************************* --# Proyecto : Sistema Vehiculo. --# Programador : Yue Rexie. --# Sitio Web : http://www.iris3dgames.ga --# Nombre Fichero : Jeep.lua --#********************************************************* --# Obervaciones : Fichero enganchado a una entidad --# Jeep (Malla) --#********************************************************* -- Clases. import("Scripts/Vehiculo/Clases/vehiculo.lua") -- Suspención. --*************** -- Ejes traseros. Script.ejeAmT1 = nil --entity "Eje T1" Script.ejeAmT2 = nil --entity "Eje T2" -- Ejes delanteros. Script.ejeAmF1 = nil --entity "Eje F1" Script.ejeAmF2 = nil --entity "Eje F2" -- Ejes Dirección llantas delanteras. Script.ejeDir1 = nil --entity "Eje DF1" Script.ejeDir2 = nil --entity "Eje DF2" -- Llantas Traseras. Script.llantaT1 = nil --entity "Rueda T1" Script.llantaT2 = nil --entity "Rueda T2" -- Llantas Delanteras. Script.llantaF1 = nil --entity "Rueda F1" Script.llantaF2 = nil --entity "Rueda F2" function Script:Start() -- Se crea el objeto jeep. jeep = vehiculo:New() -- Se crean los amortiguadores traseros. jeep:InitSusp(self.ejeAmT1,self.entity) jeep:InitSusp(self.ejeAmT2,self.entity) -- Se crean los amortiguadores delanteros. jeep:InitSusp(self.ejeAmF1,self.entity) jeep:InitSusp(self.ejeAmF2,self.entity) -- Se crea los motores ruedas Traseras. jeep:InitMotorRuedas( self.llantaT1, self.ejeAmT1) jeep:InitMotorRuedas( self.llantaT2, self.ejeAmT2) -- Se crea los motores ruedas Delanteras. jeep:InitMotorRuedas( self.llantaF1, self.ejeDir1 ) jeep:InitMotorRuedas( self.llantaF2, self.ejeDir2 ) -- Se crea los motores de dirección de las llantas frontales. jeep:InitMotorDir( self.ejeDir1, self.ejeAmF1) jeep:InitMotorDir( self.ejeDir2, self.ejeAmF2) end function Script:UpdateWorld() --self.suspT0:EnableMotor() local ventana = Window:GetCurrent() if ventana:KeyDown(Key.J) then self.entity:AddForce(0,25000,0) end end
  8. It's a lighting entity, a directional light. It's very strange, the error happens sporadically, what does not happen to you, is that even if I went out of leadwerks and entered again, it also happened, so I had to close a good time leadwerks and everything returned to normal, also if I made a copy of that entity, the copy if it worked. It seems that something stuck in the ram.
  9. Yue

    Car System

    In-process suspension system System Car.mp4
  10. Propierty pos error. Script.pos = pos(10,20,30) --pos "Player Pos"
  11. A Vec4 property does not work correctly to set properties, it does not save the data.
  12. Yue

    Car System

    This is a small project, to create a simple car system to sell to whoever is interested. And some of the content from my Spanish-language Leadwerks website.
  13. This really pleases me a lot, I thought I would never have an expensive device like that, but it turns out I can have a very cheap one. Thank you very much. And that's in Spanish, it's great for virtual reality.
  14. About mobile games, leadwerks 4.x is only for computers, however the new engine that works Josh, using the Vulkan Api, possibly if it supports mobile games.
  15. You are absolutely right, they are very varied factors in that this gets stuck, however I think I need more organization, invest some money in this if I want to do something really fun, like activate my steam account, but the main point that is, lack of organization, precisely the book I'm reading talks about it, says that every game starts in the mind but passes to a paper and tells the story of which Pacman invented, his game wrote it on a napkin. Translated with www.DeepL.com/Translator
  16. Yue

    Vulkan Nitty-Gritty

    The good thing about all this is that to create a simple triangle, you might pass us a function that is "CreateTriangle" with some parameters. And save us a lot of pain...
  17. Thank you all for your comments, I've chosen to blog the things I've learned with Leadwerks. I thought to find more people interested in developing video games that speak my native language. :) http://www.iris3dgames.ga/materiales-en-leadwerks/
  18. That confirms my suspicions, you are a programmer, I play to believe that I am, I know that you will succeed.
×
×
  • Create New...