
(I have some templated math functions, I could use btVector3's interchangeably with my other math types if they supported operator[])
Code: Select all
btVector3 pos(1,2,3);
btScalar y = pos[1];
btAssert(y == 2);
Yup, this works... should've just tried it instead of checking the documentation firstErwin Coumans wrote:Have you tried using [] on a btVector3? It should automatically use the operator btScalar* operator, which has better performance.