Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Newton Physics

Author
Message
Brick Break
User Banned
Posted: 1st Nov 2008 21:22
How would I use the Newton DLL with DBC? I have no idea what commands it uses, so I don't know where to start. Could someone please post some example code, like DLL calls and stuff? I would really like to use real physics in my games.

DBC User
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 3rd Nov 2008 21:58
The first thing to do is read through the Newton documentation so you can get familiar with the commands and the API itself. It will really help if you know something about C/C++ . You also should read up on using dlls with DBC. The help files are a good place to start and there should be a couple of examples in the DBC installation on your machine. Off the bat, DBC only allows nine parameters to be used with a DLL function call. So any commands in Newton that require more than that are out of the question unless you create your own dll based on the Newton SDK with fewer parameters in the function calls.

Here's a basic example of how to call a DLL function from Newton in DBC



Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 6th Nov 2008 23:37
where do you get the newton dll??????
tiresius
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 6th Nov 2008 23:44
Newton is based a lot on function callbacks so I believe you would need a "wrapper" DLL to access it, much like DBPro version has. How this is done for DBC I do not know.

I'm not a real programmer but I play one with DBPro!

Login to post a reply

Server time is: 2025-06-07 08:33:57
Your offset time is: 2025-06-07 08:33:57