aerys / minko

3D framework for web, desktop and mobile devices.
http://minko.io
Other
906 stars 210 forks source link

Add inertia vector #218

Open tul1 opened 9 years ago

tul1 commented 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) );

JMLX42 commented 8 years ago

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.

Fix + pull request are welcome!