Set up Identity in btTransform

Please don't post Bullet support questions here, use the above forums instead.
Post Reply
yluo
Posts: 8
Joined: Tue Sep 25, 2018 9:31 pm

Set up Identity in btTransform

Post by yluo »

Hi everyone,

I'm wondering is there a difference between the two methods to assign an Identity to a btTransform variable?

I was reading the ConstraintDemo.cpp and noticed that, when creating a btRigidBody the code used:

Code: Select all

btTransform tr;
tr.setIdentity();
But when creating a frame for the constraint, the code used:

Code: Select all

btTransform frameInA;
frameInA = btTransform::getIdentity();
I'm wondering whether these two methods are interchangeable or one is preferred than the other under certain circumstances?

Thanks a lot!
Post Reply