Game physics and scripting

Hi,

I allmost finished the graphics, sound and input of my game engine project.
In few weeks i gone start physics and scripting, but there aint much information on this in the sdk. Only the config system has some kinda physics.

Anyone know some good places for starting physics (allready got Novodex and tomahawk sdk's, but where's the fun if u don't make your own) or is it possible for microsoft to add some more information and samples about these topics in the future sdk's

Would it be good idee to do scripting trough com my engine project is now using com, so it would be possible to make interface IScript that must be implemented by each script ... then load the script using CoGetClassObject using the interface.


Answer this question

Game physics and scripting

  • Giri T

    If you don't want the overhead of the CLR, you can opt for something like Lua, which has a small footprint for an embedded scripting engine.   Lua is used in the popular World of Warcraft game as a scripting engine.

  • Grib

    Hello;
      David Bourg has an online class for game physics
    you might find interesting, at the gameinstitute.com.
    It is based on his book, and could be helpful to your
    needs as in the later part it deals with implementing
    physics in a game. Best of luck.

  • Ulrich Vogl

    Tnx,
    will go look for some of those books.

    For the scripting, i allready looked at it, but my issue is that its depending on the .net framework. I switched to c++ to not be depending on the .net framework. (mainly for performance)

    Alto i think most windows systems allready have the .net framework installed by now.


  • Josh Stevens - MSFT

    We have no announced plans on adding physics examples to the SDK.

    If you're interested in writing your own physics library, you might want to look at these books (this list is by no means complete, nor is it an endorsement of any particular book...I'm just too lazy to type in any more than 5 books Smile ):

    - Physics for Game Programmers, Grant Palmer, Apress, ISBN: 159059472X
    - Physics for Game Developers, David Bourg, O'Reilly, ISBN: 0596000065
    - Beginning Math and Physics for Game Programmers, Wendy Stahler, New Riders, ISBN: 0735713901
    - Physics Modeling for Game Programmers, David Conger, PTR, ISBN: 1592000932
    - Game Physics, David Eberly, Morgan Kaufmann, ISBN: 1558607404

    Regarding scripting, you are welcome to use the scripting samples you can find in the SDK.  You might also want to look at how people interface into DirectX using Python and Lua, which are two VERY popular scripting languages in the game development industry.



  • elenaar-ms

    On this page you can find some info (near the bottom) on how to use Lua with C/C++, and also how to make your own scripting language.

    http://www.codesampler.com/miscsrc.htm

    If you go to the index page, you will also see that there is a lot of tutorials for Python there, if that interests you.

    - OO -  

  • Game physics and scripting