Re: Official Pascal-Header (SDK 3.0)

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: Official Pascal-Header (SDK 3.0)

Postby Stucuk » Fri Feb 19, 2016 7:11 am

A WIP version of the 3.14 header can be obtained below:
- http://pastebin.com/s3GD8gYv

A bit over 50% of the header has been converted (Enough to get the basics working). h2pas tool is likely the best option until an "Official" one is done.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Official Pascal-Header (SDK 3.0)

Postby Akira1364 » Fri Feb 19, 2016 8:27 pm

The updated 3.14 version is just what I've been hoping for! I've been trying to get the Newton-based physics implementation in DXScene to work properly with modern Lazarus (on 64-Bit Windows), and the headers DXScene originally shipped with were certainly not cutting it...
Akira1364
 
Posts: 5
Joined: Fri Feb 19, 2016 8:24 pm

Re: Official Pascal-Header (SDK 3.0)

Postby Stucuk » Wed Mar 16, 2016 9:02 pm

Attached to this post is a 3.14 header generated by NewtonDoc (An app i am developing) from the original Newton.h .

It was generated on 17/03/2016 00:58:27 GMT.
Attachments
newton_pas.rar
(11.99 KiB) Downloaded 531 times
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Official Pascal-Header (SDK 3.0)

Postby Spek » Sun Apr 10, 2016 9:55 am

Much appreciated!

Can't compile it though. Line221 & 223
SERIALIZE_ID_TAPEREDCAPSULE : (sdTaperedCapsule : TNewtonTaperedCapsuleParam);
SERIALIZE_ID_TAPEREDCYLINDER : (sdTaperedCylinder : TNewtonTaperedCylinderParam);

Those ID aren't there (anymore), at least not declared earlier in the file.
Spek
 
Posts: 66
Joined: Sat Oct 04, 2008 8:54 am

Re: Official Pascal-Header (SDK 3.0)

Postby Julio Jerez » Sun Apr 10, 2016 11:33 am

yes those two shapes are deprecated in 3.14 as now cylinders and capsules are generalized shapes.
they take two radios as opposed to before that the took one radio and where a special cases of the general shapes.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Official Pascal-Header (SDK 3.0)

Postby Stucuk » Fri Mar 31, 2017 11:29 am

Updated today. Note that i have not tested it.

- https://pastebin.com/2vdegAwf
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Official Pascal-Header (SDK 3.0)

Postby JernejL » Thu Oct 19, 2017 5:20 am

Minor bug, just remove int:

Code: Select all
  int m_faceCount : Integer;


( Sorry for originally editing your post, i wanted to reply, not edit :( )
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 11 guests