dimforge / bevy_rapier

Official Rapier plugin for the Bevy game engine.
https://rapier.rs
Apache License 2.0
1.27k stars 259 forks source link

Disable rigidbody but leave colliders active #368

Open Alainx277 opened 1 year ago

Alainx277 commented 1 year ago

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 commented 1 year ago

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 commented 5 months ago

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

Alainx277 commented 5 months ago

I used RigidBodyDisabled