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

Tweaking some settings to get the cups to behave nicely #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BastiaanOlij
Copy link
Member

I had set cube collision shapes on the cups to work around issues with the cylinder shapes. After getting some feedback experimented with changing settings.

First, you can't set the margin below 0.01 in the IDE. That is 1cm for a cup that is 10 cm high. Way to much.
But you can change it programmatically so I've set it to 0.001.

The problem we now get is that bullet has great problems handling this properly unless you up the physics update rate. They recommend going as high as 300 updates per second.

Because we want the physics update rate to be in sync with the headset update rate I've added a factor to our init script that defaults setting the update rate to 2x the headset rate (160 updates per second on a Rift S). That already makes the simulation of our cups pretty stable.
Going higher works even better.

@BastiaanOlij BastiaanOlij added the enhancement New feature or request label May 10, 2020
@BastiaanOlij BastiaanOlij self-assigned this May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant