Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. https://github.com/Leadwerks/Documentation/blob/master/Lua/Entity_SetPhysicsMode.md
  3. Yesterday
  4. Ela = {} Ela.name = "Ela" Ela.bone = nil Ela.player = nil function Ela:Load() self.player = Model(self.entity) --cast to model class self.bone = self.player.skeleton:FindBone("Head") end function Ela:Update() self.player.skeleton:FindBone("bone") --yes, like this self.entity:Move(0.001,0,0) end RegisterComponent("Ela", Ela) return Ela
  5. This has been added. Cache will take some time to update.
  6. The correct value is PHYSICS_DISABLED
  7. 0.9.9 Added the rest of the videos I have at this time. These are not the final content, but there is enough we can get an idea of the effect the in-editor video help system will have.
  8. There is No information in the documentation on how to uncouple an entity from a bone.
  9. Yue

    Astrocuco - Dev Log

    When I don't speak English, when my forte is not mathematics, that's where my perception comes into play, I know how to position rigid bodies correctly on the mesh. Now at least the AI gives me suggestions, and shows me the way to go in the project. -- 💎 Transformar posición del hueso a posición global local localPos = self.bones.head:GetPosition(true) local worldMatrix = self.model:GetMatrix(true) local worldPos = TransformPoint(localPos, worldMatrix, Mat4()) -- desde modelo ➜ mundo -- ✨ Posicionar la esfera en la cabeza self.bodies.head:SetPosition(worldPos)
  10. Love the art style in this. What are your World settings ? If you don't mind sharing.
  11. The fix is available now.
  12. 0.9.9 Fixed a problem where the time trackbar was jumping around when the user clicked on it while video is playing. Lua builds are updated with added Terrain::GetLayerMaterial method.
  13. Last week
  14. Adding this now...
  15. That I figured out, but I keep erroring on GetLayerMaterial
  16. It's Terrain:GetLayers() actually. It will return a list-style table with up to four material indexes.
  17. 0.9.9 The first version of the integrated video learning system is added. You probably can't miss it. There's a setting in general options to make it not appear at startup.
  18. I have finally integrated my pre-fab dropper into my current game project.. Wow what a time save not having to place, scale and rotate all those little objects everywhere. Also wrote a script to load prefab drops into the editor and ultimately save them out as part of the actual map file. This place should really start to look like a junk yard in the next few days.
  19. I have the impression that the GetPosition() command does not work as it should, or not if I have to take something into account. When I set true, the values returned are strange, as well as false. local pos = ragdoll.bones.head:GetPosition(true) Print(pos.x) -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06 -9.14897e-07 -3.02863e-06
  20. Seems to be missing - local tbl = terrain:GetLayers(x,y) local matID = terrain:GetLayerMaterial(tbl[1]) log(mat)
  21. Ela = {} Ela.name = "Ela" Ela.bone = nil Ela.player = nil function Ela:Load() self.player = self.entity self.bone = self.entity:FindBone("Head") end function Ela:Update() self.player.skeleton:FindBone("bone") self.entity:Move(0.001,0,0) end RegisterComponent("Ela", Ela) return Ela
  22. The coordinates are the X and Y coordinate of the terrain, not the world position. The lower-left corner of the terrain is coordinate 0, 0. World position to terrain coordinate is usually something like this: int x = Round( (pos.x - terrain->resolution.x / 2) / terrain->scale.x ); int y = Round( (pos.z - terrain->resolution.y / 2) / terrain->scale.z ); x = Clamp(x, 0, terrain->resolution.x - 1); y = Clamp(y, 0, terrain->resolution.y - 1);
  23. Any advice on this GetLayers() command? All I get back is an Read Pixel Out of Bounds error. Also the docs show sending coords x and y on a 3d terrain ? Should I be sending x and z? local tbl = terrain:GetLayers(self.entity:GetPosition().x, self.entity:GetPosition().z)
  24. You can get the materials that are in use at any terrain point with these commands: https://www.leadwerks.com/learn/Terrain_GetLayers https://www.leadwerks.com/learn/Terrain_GetLayerWeight
  25. Ability to line pick material on a terrain.
  26. Junkman Sam - Open world, third person shooter - where trash has taken on life of it's own - and revolted.. Working on terrain blending and some other small effects that you'll never notice - unless they aren't there.
  1. Load more activity
×
×
  • Create New...