Page 1 of 1

Set up Identity in btTransform

Posted: Tue Sep 24, 2019 6:36 pm
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!