Two ways of getting world transform.

MaxDZ8
Posts: 149
Joined: Fri Jun 24, 2011 8:53 am

Two ways of getting world transform.

Post by MaxDZ8 »

I just noticed btRigidBody::getCenterOfMassTransform() and btCollisionObject::getWorldTransform() are the same thing.

Code: Select all

return m_worldTransform; 
I suppose this happened for historical reasons. Or perhaps they are supposed to be different somehow? Is there a plan to clean away one of those?
CookieMonster
Posts: 49
Joined: Sun Jan 29, 2012 10:01 pm

Re: Two ways of getting world transform.

Post by CookieMonster »

I don't see how one can be removed without forcing a lot of people to rewrite their code.
MaxDZ8
Posts: 149
Joined: Fri Jun 24, 2011 8:53 am

Re: Two ways of getting world transform.

Post by MaxDZ8 »

You don't see a way because there's no way.
It's not like this is going to be a problem: there's another call which is doing exactly the same. Functions go deprecated every once in a while, it's how things go. Even OpenGL dropped a few things.