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
Add "virtual" to two btRigidBody methods?
-
- Posts: 169
- Joined: Sun Jan 14, 2007 7:56 pm
- Location: Norway
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Add "virtual" to two btRigidBody methods?
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
Thanks,
Erwin
-
- Posts: 169
- Joined: Sun Jan 14, 2007 7:56 pm
- Location: Norway
Re: Add "virtual" to two btRigidBody methods?
Hi Erwin,
that is excellent news!
Ola
that is excellent news!
Ola