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

Toggling or Disabling Joints #562

Open
RobertMtx opened this issue May 14, 2022 · 0 comments
Open

Toggling or Disabling Joints #562

RobertMtx opened this issue May 14, 2022 · 0 comments

Comments

@RobertMtx
Copy link

I'm still learning how constraints and joints work in PhysX, and one of the things I haven't been able to find any reference to is the ability to temporarily disable a joint, then be able to re-enable it later. I'm assuming the breakable joints logic uses something along these lines to make that functionality work?

Most of the built in methods, such as physx::PxSphericalJointCreate(), automatically call attach() to bind the joint to the scene and such. But I haven't seen any sort of detach() method.

If I were to add this functionality to my engine, what would be the best way to go about it? Should I just release the joints and re-create them?

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