diff options
| author | Benjamin Saunders <ben.e.saunders@gmail.com> | 2021-10-23 18:39:14 -0700 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2021-10-24 13:35:10 +0200 |
| commit | f73e68d34ab23eab93b225bd5d411dc3cd683f33 (patch) | |
| tree | dc6103a1c92e170048ed6b0a8a19d742de1a729a /src/dynamics | |
| parent | 7cda2f05e2afacd0f1deb6e49a5c6b79bc348f4d (diff) | |
| download | rapier-f73e68d34ab23eab93b225bd5d411dc3cd683f33.tar.gz rapier-f73e68d34ab23eab93b225bd5d411dc3cd683f33.tar.bz2 rapier-f73e68d34ab23eab93b225bd5d411dc3cd683f33.zip | |
Note CCD interpenetration behavior
Diffstat (limited to 'src/dynamics')
| -rw-r--r-- | src/dynamics/rigid_body.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dynamics/rigid_body.rs b/src/dynamics/rigid_body.rs index 1687c5e..c0acd5e 100644 --- a/src/dynamics/rigid_body.rs +++ b/src/dynamics/rigid_body.rs @@ -227,6 +227,8 @@ impl RigidBody { } /// Enables of disable CCD (continuous collision-detection) for this rigid-body. + /// + /// CCD prevents tunneling, but may still allow limited interpenetration of colliders. pub fn enable_ccd(&mut self, enabled: bool) { self.rb_ccd.ccd_enabled = enabled; } @@ -734,6 +736,8 @@ pub struct RigidBodyBuilder { /// Whether or not the rigid-body is to be created asleep. pub sleeping: bool, /// Whether continuous collision-detection is enabled for the rigid-body to be built. + /// + /// CCD prevents tunneling, but may still allow limited interpenetration of colliders. pub ccd_enabled: bool, /// The dominance group of the rigid-body to be built. pub dominance_group: i8, @@ -983,6 +987,8 @@ impl RigidBodyBuilder { } /// Sets whether or not continuous collision-detection is enabled for this rigid-body. + /// + /// CCD prevents tunneling, but may still allow limited interpenetration of colliders. pub fn ccd_enabled(mut self, enabled: bool) -> Self { self.ccd_enabled = enabled; self |
