Set up Identity in btTransform
Posted: Tue Sep 24, 2019 6:36 pm
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:
But when creating a frame for the constraint, the code used:
I'm wondering whether these two methods are interchangeable or one is preferred than the other under certain circumstances?
Thanks a lot!
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();
Code: Select all
btTransform frameInA;
frameInA = btTransform::getIdentity();
Thanks a lot!