Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inertia vector #218

Open
tul1 opened this issue Sep 2, 2015 · 1 comment
Open

Add inertia vector #218

tul1 opened this issue Sep 2, 2015 · 1 comment
Labels

Comments

@tul1
Copy link

tul1 commented Sep 2, 2015

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 JMLX42 added the feature label Sep 22, 2015
@JMLX42
Copy link
Member

JMLX42 commented Sep 22, 2015

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants