A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Julio Jerez » Wed Jul 07, 2010 1:39 am
Ther are about half a dozen new function in newton 2.23 but they are all related to teh newton mesh,
maybe your delfy wraper is getting confused with that.
-
Julio Jerez
- Moderator
-
- Posts: 12251
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Stucuk » Wed Jul 07, 2010 2:06 am
Julio Jerez wrote:Ther are about half a dozen new function in newton 2.23 but they are all related to teh newton mesh,
maybe your delfy wraper is getting confused with that.
Nope. The only parts of the Delphi header that changed between 2.22 and 2.23 were the NewtonMesh things you added. Executor only added 2 of them (Which i never checked to see if they were converted right), so unless he is using them and has converted them incorrectly then i doubt it has anything to do with the header.
-
Stucuk
-
- Posts: 801
- Joined: Sat Mar 12, 2005 3:54 pm
- Location: Scotland
-
by Stucuk » Sun Sep 05, 2010 3:25 am
Updated to 2.24,
see first post.
-
Stucuk
-
- Posts: 801
- Joined: Sat Mar 12, 2005 3:54 pm
- Location: Scotland
-
by ledahut » Mon Sep 06, 2010 10:40 am
I did not tested in runtime but NewtonAddBodyImpulse on ligne 979 is NewtonBodyAddImpulse in newton2.
I checked newton.dll [2.24] with a text editor, and I only found NewtonBodyAddImpulse.
-
ledahut
-
- Posts: 98
- Joined: Mon Jun 21, 2010 8:03 am
- Location: France
by Stucuk » Mon Sep 06, 2010 11:37 am
Updated. Newton.h agrees with you.
-
Stucuk
-
- Posts: 801
- Joined: Sat Mar 12, 2005 3:54 pm
- Location: Scotland
-
by ledahut » Tue Sep 07, 2010 2:46 am
PNewtonMeshPoint undeclared. line 1191
Need to add
- Code: Select all
PNewtonMeshPoint= ^Pointer;
after
- Code: Select all
PNewtonMeshFace = ^Pointer;
line 204
----
Julio said that 'JointLibrary.dll' is now 'dJointLibrary.dll'
Postby kallaspriit » Thu Aug 26, 2010 1:14 pm
Is the renaming from JointLibrary.lib and dll to dJointLibrary permanent or was it accidental in last version?
Postby Julio Jerez » Thu Aug 26, 2010 2:41 pm
Not, when I was doing the collada changes I saw the the name of the project was JointLibrary while all others started with a lower case d, so I remame the project to dJointLibrary for consistency.
----
I have also a little problem since two or three anterior version with NewtonCreateCompoundCollision.
- Code: Select all
function NewtonCreateCompoundCollision( const newtonWorld : PNewtonWorld; count : int;
const collisionPrimitiveArray : PNewtonCollision; shapeID : Int ) : PNewtonCollision;
I need to rewrite the type 'PNewtonCollision' of collisionPrimitiveArray to 'Array Of PNewtonCollision'
Like that
- Code: Select all
function NewtonCreateCompoundCollision( const newtonWorld : PNewtonWorld; count : int;
const collisionPrimitiveArray : Array Of PNewtonCollision; shapeID : Int ) : PNewtonCollision;
In newton.h we have
- Code: Select all
NEWTON_API NewtonCollision* NewtonCreateCompoundCollision (const NewtonWorld* newtonWorld, int count, NewtonCollision* const collisionPrimitiveArray[], int shapeID);
were the type is an array too.
-
ledahut
-
- Posts: 98
- Joined: Mon Jun 21, 2010 8:03 am
- Location: France
by Stucuk » Tue Sep 07, 2010 5:29 am
PNewtonMeshPoint undeclared
Forgot to copy that over(I use a modified version where some variable types are shifted to a maths unit).
I need to rewrite the type 'PNewtonCollision' of collisionPrimitiveArray to 'Array Of PNewtonCollision'
Why do you need it to be an array? Just give it
@MyArray[0]. Having no "array of" bits is preferable as it then means you can use pointers.
Updated. PNewtonMeshPoint has been added and the JointLibrary's name has changed in the header.
-
Stucuk
-
- Posts: 801
- Joined: Sat Mar 12, 2005 3:54 pm
- Location: Scotland
-
by ledahut » Tue Sep 07, 2010 6:25 am
Yes you right thanks.
-
ledahut
-
- Posts: 98
- Joined: Mon Jun 21, 2010 8:03 am
- Location: France
by Kjow » Tue Sep 07, 2010 7:10 am
The requested URL /downloads/2010-09-07_NGD_Delphi_Header_2.24.rar was not found on this server.
:)
-
Kjow
-
- Posts: 56
- Joined: Thu Nov 13, 2008 11:33 am
by ledahut » Tue Sep 07, 2010 7:43 am
For the moment download 2010-09-06
and add PNewtonMeshPoint= ^Pointer;
-
ledahut
-
- Posts: 98
- Joined: Mon Jun 21, 2010 8:03 am
- Location: France
by Stucuk » Tue Sep 07, 2010 7:49 am
Fixed. I hate how copy and pasting rar's names causes the .rar to be copied (So you get .rar.rar) .
-
Stucuk
-
- Posts: 801
- Joined: Sat Mar 12, 2005 3:54 pm
- Location: Scotland
-
by Kjow » Tue Sep 07, 2010 7:54 am
Thanks :)
-
Kjow
-
- Posts: 56
- Joined: Thu Nov 13, 2008 11:33 am
by Sascha Willems » Mon Dec 06, 2010 7:03 am
Sorry for lagging behind, but in case anyone is still interested, I updated my headers to the latest 2.26 beta. You can
get them here.
-
Sascha Willems
- Moderator
-
- Posts: 346
- Joined: Fri Aug 27, 2004 10:18 am
- Location: Germany
-
by ledahut » Mon Dec 06, 2010 8:55 am
Thank you.
But in NewtonImport_JointLibrary
HingeSetLimis is now HingeSetLimits
SliderSetLimis is now SliderSetLimits
In NewtonImport
NEWTON_MAJOR_VERSION = 2;
NEWTON_MINOR_VERSION = 25; must be 26
at 236 TNewtonSphereParam = packed
float has been changed to single, possible lost of precision with {$NEWTON_DOUBLE_PRECISION}
at 874 NewtonCollisionForEachPolygonDo ... name 'NewtonReleaseCollision'{$ELSE}NewtonDLL{$ENDIF __GPC__};
Is that correct?
at 983 NewtonAddBodyImpulse is now NewtonBodyAddImpulse
-
ledahut
-
- Posts: 98
- Joined: Mon Jun 21, 2010 8:03 am
- Location: France
by Sascha Willems » Mon Dec 06, 2010 10:02 am
Thanks for pointing me to these bugs and mistakes, I sadly don't have much time for coding, so these things easily slip my attention. I've uploaded the corrected headers, so please redownload if you haven't fixed it yourself.
ledahut wrote:In NewtonImport
NEWTON_MAJOR_VERSION = 2;
NEWTON_MINOR_VERSION = 25; must be 26
Not, that's actually correct
, take a look at Newton.h. It seems there have been no changes in the headers from 2.25 to 2.26, so Julio didn't change the headers version numbers, neither did I.
-
Sascha Willems
- Moderator
-
- Posts: 346
- Joined: Fri Aug 27, 2004 10:18 am
- Location: Germany
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 2 guests