Jump to content
  • Advertisement
MisterShu

AI / LUA / C++ / Game Math Library Questions

This topic is 468 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

I am currently working on a custom engine that is c++ based. For now, I am trying to do an integration of Lua into the engine. I have read the forum of the pros and cons, the logic behind Lua and c++ engine (low level scripting or high level scripting). 

I still have doubts whether should I bind game math library (GLM;vector3d etc....) into Lua as well. 

Currently, the LUA script controls how the AI reacts and the control setup for the player. (WASD for movement etc).

The game is focusing on FPS.

Share this post


Link to post
Share on other sites
Advertisement

To my opinion, yes. Your scripting should behave just like your engine mathematics, whether for accuracy, quickness, and also what it provides (maybe lua will lack some of your mathematical types).  The latter works also for the interface (so, same name for functions). This looks essential so that one could easily work with both the script and the sources of the engine.

Share this post


Link to post
Share on other sites

Im having the same thoughts about what I need to do in LUA for my own engine and scripting also.  Firstly, picking the right LUA library (my project is in C# also).

But I feel I will need to do as you are doing, bind my complex functions and leave the very basic scripting to LUA.  

Interested to know what your goal with the LUA scripting will be.  

 

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!