www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Physics libraries in D

reply "KillerSponge" <killersponge gmail.com> writes:
Hi all,

I've been searching around for physics libraries to use in a 
real-time 3D application (a game, to be more precise). I know 
that Bullet and ODE are the big open source ones for C/C++, and I 
get the general impression that Bullet is currently taking the 
lead in terms of performance, precision, maintenance and 
community adaptation.

However, I have only been able to find ODE bindings for D (in 
Derelict), and what seems to be an abandoned effort to port 
Bullet to D. Are there no working bindings for Bullet in D?
May 08 2013
parent reply "Mike Parker" <aldacron gmail.com> writes:
On Wednesday, 8 May 2013 at 09:37:51 UTC, KillerSponge wrote:
 Hi all,

 I've been searching around for physics libraries to use in a 
 real-time 3D application (a game, to be more precise). I know 
 that Bullet and ODE are the big open source ones for C/C++, and 
 I get the general impression that Bullet is currently taking 
 the lead in terms of performance, precision, maintenance and 
 community adaptation.

 However, I have only been able to find ODE bindings for D (in 
 Derelict), and what seems to be an abandoned effort to port 
 Bullet to D. Are there no working bindings for Bullet in D?
Last I checked, Bullet doesn't have a C interface. That means it's unlikely you'll find a D binding. And I haven't heard of any.
May 08 2013
next sibling parent reply "evilrat" <evilrat666 gmail.com> writes:
On Wednesday, 8 May 2013 at 09:43:43 UTC, Mike Parker wrote:
 On Wednesday, 8 May 2013 at 09:37:51 UTC, KillerSponge wrote:
 Hi all,

 I've been searching around for physics libraries to use in a 
 real-time 3D application (a game, to be more precise). I know 
 that Bullet and ODE are the big open source ones for C/C++, 
 and I get the general impression that Bullet is currently 
 taking the lead in terms of performance, precision, 
 maintenance and community adaptation.

 However, I have only been able to find ODE bindings for D (in 
 Derelict), and what seems to be an abandoned effort to port 
 Bullet to D. Are there no working bindings for Bullet in D?
Last I checked, Bullet doesn't have a C interface. That means it's unlikely you'll find a D binding. And I haven't heard of any.
currently Bullet has *very* limited C API. for simple cases it may be enough, but for a game...
May 08 2013
parent "Jeremy DeHaan" <dehaan.jeremiah gmail.com> writes:
On Wednesday, 8 May 2013 at 13:01:52 UTC, evilrat wrote:
 On Wednesday, 8 May 2013 at 09:43:43 UTC, Mike Parker wrote:
 On Wednesday, 8 May 2013 at 09:37:51 UTC, KillerSponge wrote:
 Hi all,

 I've been searching around for physics libraries to use in a 
 real-time 3D application (a game, to be more precise). I know 
 that Bullet and ODE are the big open source ones for C/C++, 
 and I get the general impression that Bullet is currently 
 taking the lead in terms of performance, precision, 
 maintenance and community adaptation.

 However, I have only been able to find ODE bindings for D (in 
 Derelict), and what seems to be an abandoned effort to port 
 Bullet to D. Are there no working bindings for Bullet in D?
Last I checked, Bullet doesn't have a C interface. That means it's unlikely you'll find a D binding. And I haven't heard of any.
currently Bullet has *very* limited C API. for simple cases it may be enough, but for a game...
You could do something kind of like what SFML did for its CSFML version to make a C version of the API, but that would probably take a while.
May 08 2013
prev sibling parent "Andrea Fontana" <nospam example.com> writes:
On Wednesday, 8 May 2013 at 09:43:43 UTC, Mike Parker wrote:
 Last I checked, Bullet doesn't have a C interface. That means 
 it's unlikely you'll find a D binding. And I haven't heard of 
 any.
If it has a c++ interface probably you can bind it using swig.
May 09 2013