Jump to content

Yue

Members
  • Posts

    2,303
  • Joined

  • Last visited

Everything posted by Yue

  1. I want to create a physics system for the forklift truck, apparently I can do it through joints, however I don't know where to start, shock absorber of each tire, engine in each tire, are doubts that I want you to please help me clarify.
  2. Yue

    AI errors

    I'm looking, and here it goes very slowly in the editor, I can't run the game since I don't have the additional packs that are purchased. What I think is that the models should have fewer polygons, since it seems that all those zombies add up to a lot of polygons on the scene, unless you have a very powerful computer.
  3. These are the parts of the texture I want to illuminate that are the front lanterns of the vehicle and the rear lanterns.
  4. This? But apparently I don't have the desired result....
  5. Sample shader for light where please?
  6. I have a concern, how do I make the surface of the vehicle's lights look bright, is to simulate the effect that they are on and not off. Any suggestions?
  7. I have a character with a simple animation, but the shadow does not update the character's status. For example, the character is seated and the shadow does not copy this movement of the character. Any suggestions?
  8. That was a headbutt thinking about why it didn't work. You could see them in the editor, but nothing happened when they were running. I think there is an option to enable or disable scripted effects to use options in a setup menu.
  9. I think Leadwerks is a brand already positioned, original and recognized by many. If it's about doing something new, then the right name, I think, would be. Turbo Engine Leadwerks, (TEL), or Turbo Leadwerks.
  10. My concern is, as I activate a Bloom effect in my scene. I tell them that I add a shader to the scene and in the editor you see the effect, however when I run the application, it is not possible to visualize that effect. Any suggestions?
  11. Yue

    Taking Care of Business

    My point of view. I'm from Colombia, I have two products in Steam APP GAme Kit and Leadwerks, the way to access these products is through a third party that resells games in Colombia, he earns a commission and sends me the gift product in steam. Unfortunately I have no other payment options.
  12. Yue

    AI errors

    One question, how many polygons is the humanoid model?
  13. Hello, I'm trying to create prefabricated with brushes, but when I put the prefabricated one away and try to use it again, the object is deformed and its parts are separated. Any suggestions?
  14. Thanks You!! now only reflect the light, the orange vest and the sound protectors.
  15. Hi, I want to know how to remove the shine from the materials, it's that my character reflects a lot of shine, it looks like it's made of plastic, and I need it not to reflect the sunlight. Any suggestions?
  16. No, I'm telling you what I did and how I put it on the development blog. It is a lightning bolt that comes out of a pivot that is close to the player's neck and if its target is another pivot that is at a certain distance from the character, then the camera is hooked to that second pivot. When the beam collides with a wall, the camera is positioned at the point of collision and when the beam does not collide with anything, it is positioned at the second pivot position. I'm thinking that you can use ToGoPoint, so that the camera moves at a smooth speed and doesn't jump to the second pivot with a single movement. Translated with www.DeepL.com/Translator
  17. I'm telling you, I did this. Script.Camara = nil --entity "Camara" Script.Yue = nil --entity "Yue" Script.PivoteCamara = nil --entity "Pivote Camara" Script.Escenario = nil --entity "Escenario" posCamara = Vec3() posPivotePlayer = Vec3() posPivoteCamara = Vec3() function Script:Start() self.Camara:SetRange(0.01, 100) self.Escenario:SetPickMode( Entity.PolygonPick ) self.entity:SetPickMode(0) self.Yue:SetPickMode( 0 ) end function Script:UpdateWorld() local pickinfo = PickInfo() -- Giro Camara GiroCamara(self) -- Colision Camara posCamara = self.Camara:GetPosition(true) posPivotePlayer = self.entity:GetPosition(true) posPivoteCamara = self.PivoteCamara:GetPosition(true) if world:Pick( posPivotePlayer.x, posPivotePlayer.y, posPivotePlayer.z, posPivoteCamara.x, posPivoteCamara.y, posPivoteCamara.z, pickinfo , 0.11, true ) then System:Print("Col OK") self.Camara:SetPosition( pickinfo.position, true ) else --self.Camara:Move(0, 1, 0, true ) System:Print( "Col Not") self.Camara:SetPosition( posPivoteCamara, true ) end --self.Yue:GoToPoint(0, 100, 0 ) end pivote = Vec3() -- Giro Camara libre function GiroCamara(self) --Get the mouse movement local sx = Math:Round(context:GetWidth()/2) local sy = Math:Round(context:GetHeight()/2) local mouseposition = window:GetMousePosition() local dx = mouseposition.x - sx local dy = mouseposition.y - sy --Adjust and set the camera rotation pivote.x = pivote.x + dy / 10.0 pivote.y = pivote.y + dx / 10.0 self.entity:SetRotation(pivote) --Move the mouse to the center of the screen window:SetMousePosition(sx,sy) if pivote.x >= 45 then pivote.x = 45 elseif pivote.x <= -45 then pivote.x = -45 end end
  18. import("Scripts/Menu.lua")
  19. I have a camera that follows a character from a distance. When the camera collides with a wall using a beam, it is positioned at the point of collision, however after that collision, I need the camera to be reset to its initial position. Any suggestions? Camera in original position when following the player. Camera in position in point Collision with a wall The idea is that after the collision, it will return to its original point smoothly. I welcome any suggestions. function Script:UpdateWorld() local pickinfo = PickInfo() -- Giro Camara GiroCamara(self) -- Colision Camara posCamara = self.Camara:GetPosition(true) posPivote= self.entity:GetPosition(true) if world:Pick( posPivote.x, posPivote.y, posPivote.z, posCamara.x, posCamara.y, posCamara.z, pickinfo , 0, false ) then System:Print("Col OK") self.Camara:SetPosition( pickinfo.position, true ) else --self.Camara:Move(0, 1, 0, true ) System:Print( "Col Not") end end
  20. I'll tell you something, after trial and error, I found out that I had a loaded cube-shaped mesh that was the central pivot of the character, if I use a lightning bolt using a mesh it doesn't work, and I don't understand why. However if I create a cube from the Leadwerks editor and put it as the central pivot point of the character if it works, any suggestions as to why it doesn't work with a loaded mesh? Translated with www.DeepL.com/Translator
  21. The idea is that from the center of the character (Pivot) lightning to the position of the camera, with the aim of recognizing when the camera touches an entity, such as wall or floor.
  22. Hi, can you help me, please? What happens is that I'm throwing a beam from a pivot ("cube") from the center of the character to the camera. The idea is to detect the collision of this beam to stop the movement of the camera when it touches a wall or the ground, but initially I can't detect the end of the beam where this collision should happen, my logic tells me I'm doing well but obviously I'm not. Any suggestions. Translated with www.DeepL.com/Translator Script.Camara = nil --entity "Camara" posCamara = Vec3() pivote = Vec3() posPivote = Vec3() function Script:UpdateWorld() GiroCamara(self) -- Colision Camara posPivote = self.entity:GetPosition(true) posCamara = self.Camara:GetPosition(false) if world:Pick( posPivote.x, posPivote.y, posPivote.z, posCamara.x, posCamara.y, posCamara.z, PickInfo(), 0, true ) then System:Print("Col OK") else System:Print( "Col Not") end end -- Giro Camara libre function GiroCamara(self) --Get the mouse movement local sx = Math:Round(context:GetWidth()/2) local sy = Math:Round(context:GetHeight()/2) local mouseposition = window:GetMousePosition() local dx = mouseposition.x - sx local dy = mouseposition.y - sy --Adjust and set the camera rotation pivote.x = pivote.x + dy / 10.0 pivote.y = pivote.y + dx / 10.0 self.entity:SetRotation(pivote) --Move the mouse to the center of the screen window:SetMousePosition(sx,sy) if pivote.x >= 45 then pivote.x = 45 elseif pivote.x <= -45 then pivote.x = -45 end end
×
×
  • Create New...