Delphi/Pascal Header

Newton Game Dynamics Engine 3.x
    You can grab a current header for the 3.00 alpha of the NGD over at the Newton forms. It’s maintained by Stucuk, so if you got any questions post them in that thread.
Newton Game Dynamics Engine 2.x
    These are the header translations of the current 2.xx version of the Newton Game Dynamics SDK (you can get the latest SDK here). Note that things may change between 2.XX releases, so that functions may totally change or even may be removed between two releases. But if you want to play with the many new features of Newton 2.00 then you should at least take a look at it. My thanks go out to Stucuk for updating the headers several times when I wasn’t having time to update the headers due to personal reasons. As of 2.15 I’ll try to update them as soon as possible.

    zip Newton Game Dynamics Delphi/Pascal header for SDK 2.35(beta)

    Note :  In addition to he NewtonImport.pas, it now also contains  a translation of the JointLibrary included in NewtonImport_JointLibrary.pas (thanks to Executor for the initial translation of that header).

    History:

    • 12.02.2012 – Updated to beta 2.35 (Download)
    • 12.04.2011Revision #1 for 2.33. Some functions had their parameters changed (contact process related) (Download)
    • 04.04.2011 – Updated to beta 2.33 (Download)
    • 21.02.2011 – Updated to beta 2.32 (Download)
    • 30.12.2010 – Updated to beta 2.29 (Download) Important note : NewtonCreateBody changed, now directly takes a matrix as additional parameter.
    • 06.12.2010 – Updated to beta 2.26 (Download)
Newton Game Dynamics Engine 1.5
    This is the official header translation of the NGD 1.5 SDK. It should work with Delphi (5 and up tested, older versions may work too) and Free Pascal. Note that NGD 1.5 won’t be updated anymore, so if you want to make use of the latest features, get the 2.X SDK headers.

    zip Newton Game Dynamics Delphi/Pascal header for SDK 1.53

    Changes :

    • 26.05.2006NGD 1.53 released, headers updated.
    • 14.03.2006NGD 1.52 released, headers updated.
    • 10.02.2006CustomJoint unit updated (bugfix), please redownload header if you use it.
    • 30.01.2006NGD 1.51 released. No header changes, so header is still compatible.
    • 05.01.2006 – Fixed small bugs in the custom joint unit that wouldn’t let it compile. If you use this unit, please redownload the headers.
    • 03.01.2006 – Updated the headers to NGD 1.5, header now also comes with the translation of the custom joints. SDL demos will be updated soon.

22 Comments

  1. Apparently there’s a bug in the hinge constraint function in the custom joints unit:

    It reads:

    LQ0 := VAdd(V4(LMatrix0,3), VScale(V4(LMatrix0,0), MIN_JOINT_PIN_LENGTH));
    LQ1 := VAdd(V4(LMatrix0,3), VScale(V4(LMatrix0,0), MIN_JOINT_PIN_LENGTH));

    Where it should actually:

    LQ0 := VAdd(V4(LMatrix0,3), VScale(V4(LMatrix0,0), MIN_JOINT_PIN_LENGTH));
    LQ1 := VAdd(V4(LMatrix1,3), VScale(V4(LMatrix1,0), MIN_JOINT_PIN_LENGTH));

  2. In SDK
    begin for 2.24
    “JointLibrary.dll” change to the “dJointLibrary.dll”

    In Delphi header
    In “NewtonImport_JointLibrary.pas” Line 74 “JointLibraryDLL = ‘JointLibrary.dll’;” is OK?

    Thank you for great effort!

  3. Without compiling the sdk myself (which I can not) how can I get hold of the x86 newton.dll(s) compiled for single precision?

    1. I’m only maintaining the Delphi/Pascal header translation, so for this type of questions you’d have to visit the official newton forums and ask there.

  4. Anyone tried 3.x header with delphi 2010?, it compile fine but i am having an access violation when i try to use the tree collision build.

    Everithing work great when used with deklphi 7.

Leave a Reply

Your email address will not be published. Required fields are marked *