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

Disable rigidbody but leave colliders active #368

Open
Alainx277 opened this issue Apr 28, 2023 · 3 comments
Open

Disable rigidbody but leave colliders active #368

Alainx277 opened this issue Apr 28, 2023 · 3 comments
Labels
A-Integration very bevy specific C-Bug Something isn't working D-Difficult Needs strong technical background, domain knowledge, or impacts are high, needs testing... P-Medium S-not-started Work has not started

Comments

@Alainx277
Copy link
Contributor

In my game limbs can be detached and attached. I disable their rigidbody and parent them when attaching them to a body. I want to use colliders for hit detection, but they get disabled when I disable the rigidbody.

Is there a way to leave the colliders enabled?

@cbrown1234
Copy link

Have you considered switching the collider to a sensor collider, rather than disabling their rigidbody? (Not sure if this will work, but might could be worth trying)

@Vrixyz
Copy link
Contributor

Vrixyz commented May 23, 2024

by disabling the rigidbody do you mean removing the RigidBody component ?

@Vrixyz Vrixyz added C-Bug Something isn't working D-Difficult Needs strong technical background, domain knowledge, or impacts are high, needs testing... P-Medium S-not-started Work has not started A-Integration very bevy specific labels May 23, 2024
@Alainx277
Copy link
Contributor Author

I used RigidBodyDisabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Integration very bevy specific C-Bug Something isn't working D-Difficult Needs strong technical background, domain knowledge, or impacts are high, needs testing... P-Medium S-not-started Work has not started
Projects
None yet
Development

No branches or pull requests

3 participants