Closed GoogleCodeExporter closed 9 years ago
Here is some example usage:
btTransform tr0, tr1,tr2;
tr0.setIdentity();
tr1.setIdentity();
tr1.setOrigin(btVector3(1,1,1));
tr1.setRotation(btQuaternion(btVector3(1,0,0),0.1*1.772453851));
btTransform dt;
btVector3 axis,axis1;
btScalar angle,angle1;
btVector3 linvel,angvel;
btTransformUtil::calculateDiffAxisAngle(tr0,tr1,axis,angle);
btTransformUtil::calculateDiffAxisAngleQuaternion(tr0.getRotation(),tr1.getRotation(),axis1,angle1);
btTransformUtil::calculateVelocity(tr0,tr1,1,linvel,angvel);
MultiThreadedDemo* demo = new MultiThreadedDemo();
btTransformUtil::integrateTransform(tr0,linvel,angvel,1,tr2);
btQuaternion orn1 = tr2.getRotation();
btQuaternion orn2 = tr1.getRotation();
Original comment by erwin.coumans
on 9 Sep 2012 at 9:51
Original issue reported on code.google.com by
plbar...@gmail.com
on 26 Feb 2010 at 2:27