macklebee Posted May 30, 2010 Share Posted May 30, 2010 I noticed the base and baseclass lua files that were used when we had multi-state lua are back. Is there a particular reason for these files to be used other than the class lua file that was introduced with single-state lua? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Canardia Posted May 30, 2010 Share Posted May 30, 2010 Maybe because it was impossible to read the position of a model when it was created? It returned always Vec3(0,0,0): http://leadwerks.com/werkspace/index.php?&app=tracker&showissue=98&view=findpost&p=412 Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
macklebee Posted May 30, 2010 Author Share Posted May 30, 2010 Why should you be able to read the moved position of a model before an UpdateWorld() has occurred? The last time I checked that was one of the purposes of UpdateWorld(): Updates physics and movement/positioning in the current world. and i still do not see the connection to why these two files are back in the SDK. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Canardia Posted May 30, 2010 Share Posted May 30, 2010 It's not the moved position, but the model's current position, which doesn't even change. It works from all other languages, but not from Lua. I think it's just some simple bug when scene is loaded, then the model's position is not given correctly to Lua before UpdateWorld is called. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.