Add "virtual" to two btRigidBody methods?

Post Reply
ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway
Contact:

Add "virtual" to two btRigidBody methods?

Post by ola »

Hi,

I'm porting some code from an existing simulation to Bullet, and need to use another integration scheme than the Symplectic Euler method used in Bullet. Adams-Bashforth is similar to Euler integration but uses more backward steps. It's often used in flight simulations. I know this will make collisions and other constraints to behave differently but I would like to try it out anyway.

There are two methods that aren't defined as virtual in btRigidBody yet. So I suggest to make the following methods virtual in btRigidBody.h:

btRigidBody::integrateVelocities
btRigidBody::predictIntegratedTransform

Best regards,
Ola
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Add "virtual" to two btRigidBody methods?

Post by Erwin Coumans »

We were planning to add an 'integration module' that can be overridden by the user, so no need to override the btRigidBody implementation. I'll see if we can make those changes for the next release.

Thanks,
Erwin
ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway
Contact:

Re: Add "virtual" to two btRigidBody methods?

Post by ola »

Hi Erwin,

that is excellent news! :-)

Ola
Post Reply