btTransform initialization

faichele
Posts: 9
Joined: Wed Aug 27, 2008 7:56 am

btTransform initialization

Post by faichele »

Hello!

A question concerning the btTransform class: Is it by design that one has to explicitly call the "setIdentity" function after declaring a variable of that type? If I don't do that (and the btTransform isn't filled with "sensible" values from somewhere else), one gets rather strange results when applying a non-"setIdentity"-ed btTransform on a rigid body. Wouldn't it make sense to modify the constructor to initialize the matrix member to the 3x3 identity matrix, and the transform vector to (0,0,0)?

Thank you!

Fabian Aichele