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

Alternative pose integrators and custom gravity handling #12

Closed
RossNordby opened this issue Oct 22, 2017 · 1 comment
Closed

Alternative pose integrators and custom gravity handling #12

RossNordby opened this issue Oct 22, 2017 · 1 comment

Comments

@RossNordby
Copy link
Member

RossNordby commented Oct 22, 2017

At the moment, gravity is assumed to be a single simulation wide constant by the PoseIntegrator. Some simulations do not require gravity, and others may want to use per-body gravity of some form.

We can easily support the different use cases by letting the user supply a gravity callback in the same way that we support zero overhead narrowphase callbacks (generic structs). Since the pose integrator relies on body data in AOS format, it wouldn't be too terrible to rely on the user to provide the desired implementation.

The same sort of approach could be used to implement damping. The callback would effectively a general purpose velocity modifier.

@RossNordby
Copy link
Member Author

b9f37d5 provides the necessary pose integrator callback.

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

No branches or pull requests

1 participant