there is also this:
Application:set => documentDirectory(path)
I wanted to try it but haven't had the occasion yet. Maybe that can work for you?
perfect, thank you very much hgy29 -- the obj
self.obj = loadObj(xobjpath, xobjname)
local minx, miny, minz = self.obj.min, self.obj.min, self.obj.min
local maxx, maxy, maxz = self.obj.max, self.obj.max, self.obj.max
I have one more question regarding r3d. I don't know if I should start a new post?
My question is: can we get the position of a r3d body on only 1 axis?
I would like to access the position on a certain axis only (for example the body position on the…
thank you for your feedback.
I wanted to have access to obj and obj.body inside the init.
I can have access to those this way:
PLAYER1 = Core.class()
function PLAYER1:init(xworld, xobjpath, xobjname)
self.obj = loadObj(xobjpath, xobjname) -- retu…
thank you hgy29. Still learning lua . I have just found out how ipairs work thanks to your sample code and now I can't live without it
I found my error: I wanted to use pairs instead of ipairs debugging fun
You could just publish a test case where you use an empty project and see if that does not work on his machine also.
adding a module or plugin at a time and see if one particular one seems to be causing the crash. I don't know if or how that might …
I have updated the wiki a little more, navigation and stuff. Please tell me if there is any problem.
The BIG ones are still a little bit messy: Facebook Instant Games, LiquidFun/Box2D, Noise, ReactPhysics3D
nice to see you kinrpg. I am not sure about the answer but you can try profiling the code:
In gideros you just need to click this:
It produces a nice html output
Please share your results.
ok I will try it again then! when I do:
-- an object
--local patrick = loadObj("3d_objs/Patrick Star", "patrick.obj", "3d_objs/Patrick Star/Tex_0086_2.png")
local patrick = loadObj("3d_objs/Patrick Star", "patrick.obj")
I have this error:
I think you mean the opposite: objloader.lua is actually much more advanced than 3DObjLoader ? For me objloader.lua works fine even with reactphysics3d. I tried to push it on github but I couldn't find the library folder!
in gideros installation folder \Library\3dbase wouldn't it be better to replace 3DObjLoader.lua (5kb) by objloader.lua (9kb). I don't seem do make 3DObjLoader.lua work for obj. objloader.lua works great.
I see gideros 2020.02 is coming could you …
welcome back . You may need to add some tolerance to your click action because on mobile touch is very sensitive. Something like:
dx = event.x -target.x0
dy = event.y - target.y0
if math.abs(dx) >= 64 and math.abs(dy) >= 64 then target.ismovi…
@antix (and @all) feel free to express yourself, I believe in freedom of speech, opinions, press, religion, ...
I think this wikimedia addon could be a (the) solution: https://www.mediawiki.org/wiki/Extension:PdfBook
Hopefully it's not to hard to…