VectorMath vs LinearMath?

thecheeselover
Posts: 1
Joined: Sat Dec 21, 2013 11:11 pm

VectorMath vs LinearMath?

Post by thecheeselover »

Hello,

I'm new to bullet physics and I would appreciate some directions. When should we use VectorMath vs when should we use LinearMath? I would actually like to only use VectorMath, as it is more convenient for me. It has a matrix4x4 class and a vector3 class that doesn't have a w component unlike LinearMath classes. Also, there are three directories in VectorMath that have similar header files: neon, scalar, and sse. Should I use vmInclude.h instead or I need to use the headers directly?

Thank you for your precious time,
thecheeselover
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: VectorMath vs LinearMath?

Post by Erwin Coumans »

We never got into using Vectormath properly, and mainly stick to btVector3,btQuaternion and btTransform inside Bullet.

Of course you are free to use any math library in your own code.