Open tul1 opened 9 years ago
Hi, Somebody knows how to pass an inertia vector to the ColliderData create method? I'm working in the dev branch.
The following way doesn't compile.
auto boxColliderData = bullet::ColliderData::create( BOX_MASS, bullet::BoxShape::create(BOX_SIZE, BOX_SIZE, BOX_SIZE), BOX_RESTITUTION, BOX_FRICTION, BOX_ROLLING_FRICTION, math::vec3(0,0,0) );
The port to the new math API (using GLM) on the dev branch has been poorly done on the ColliderData::create() method. It expects a math::vec3* instead of a math::vec3.
ColliderData::create()
math::vec3*
math::vec3
Fix + pull request are welcome!
Hi, Somebody knows how to pass an inertia vector to the ColliderData create method? I'm working in the dev branch.
The following way doesn't compile.
auto boxColliderData = bullet::ColliderData::create( BOX_MASS, bullet::BoxShape::create(BOX_SIZE, BOX_SIZE, BOX_SIZE), BOX_RESTITUTION, BOX_FRICTION, BOX_ROLLING_FRICTION, math::vec3(0,0,0) );