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

RigidBody could benefit from getCenterOfMass methods #25

Closed
jagoly opened this issue May 24, 2016 · 2 comments
Closed

RigidBody could benefit from getCenterOfMass methods #25

jagoly opened this issue May 24, 2016 · 2 comments
Assignees
Milestone

Comments

@jagoly
Copy link

jagoly commented May 24, 2016

Currently, it seems that the centre of mass cannot be retrieved from a RigidBody. In several cases, it can be useful to be able to retrieve the automatically generated value from the body to use elsewhere. Is there a reason that such functions don't exist, or am I missing something? It seems like they should, as there are functions to retrieve the mass and inertia tensor.

@DanielChappuis
Copy link
Owner

Yes that's a good idea. I will add this for the next release !

@DanielChappuis DanielChappuis added this to the Version 0.7.0 milestone May 25, 2016
@DanielChappuis DanielChappuis self-assigned this May 25, 2016
@DanielChappuis
Copy link
Owner

The version v0.8.0 of ReactPhysics3D has been released. In this version, there is now a RigidBody::getLocalCenterOfMass() method to get the location of the center of mass in local-space. There is also a RigidBody::getLocalInertiaTensor() method to retrieve the local-space inertia tensor.

Note that this version contains some public API changes. Please read carefully the change log before upgrading to this new version and do not hesitate to take a look at the user manual.

I am therefore closing this issue.

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

No branches or pull requests

2 participants