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

RigidBodyDefinition missing friction parameter #143

Open
calvertdw opened this issue Feb 2, 2024 · 0 comments
Open

RigidBodyDefinition missing friction parameter #143

calvertdw opened this issue Feb 2, 2024 · 0 comments

Comments

@calvertdw
Copy link
Member

For the simulation of the Door, I need the bolt to be slippery, and the only way to set the friction (I think) is by casting to the physics engine specific classes and setting the friction parameter manually. For example:

BulletPhysicsEngine bulletPhysicsEngine = (BulletPhysicsEngine) simulationSession.getPhysicsEngine();

bulletRobot = bulletPhysicsEngine.getBulletRobots().get(0);

// The bolt should be slippery
BulletMultiBodyLinkCollider boltLinkCollider = bulletRobot.getBulletMultiBodyRobot().getBulletMultiBodyLinkCollider(3);
boltLinkCollider.setFriction(0.001);
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