diff options
| author | Jan Nils Ferner <contact@jnferner.com> | 2023-01-27 17:54:20 +0100 |
|---|---|---|
| committer | Jan Nils Ferner <contact@jnferner.com> | 2023-01-27 17:54:20 +0100 |
| commit | 05db3e8e0a132ac26adbe5dc4e1573a6e7e3d557 (patch) | |
| tree | f461af01457d532fc6a8c6707218788eb2b876c5 /src/control/character_controller.rs | |
| parent | b93c6b5766b7c74d9441038a54edbfce0a14796c (diff) | |
| download | rapier-05db3e8e0a132ac26adbe5dc4e1573a6e7e3d557.tar.gz rapier-05db3e8e0a132ac26adbe5dc4e1573a6e7e3d557.tar.bz2 rapier-05db3e8e0a132ac26adbe5dc4e1573a6e7e3d557.zip | |
Stop shape cast at penetration
Diffstat (limited to 'src/control/character_controller.rs')
| -rw-r--r-- | src/control/character_controller.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/control/character_controller.rs b/src/control/character_controller.rs index aa7a9c6..6108487 100644 --- a/src/control/character_controller.rs +++ b/src/control/character_controller.rs @@ -229,7 +229,7 @@ impl KinematicCharacterController { &translation_dir, character_shape, translation_dist + offset, - false, + true, filter, ) { // We hit something, compute the allowed self. @@ -338,7 +338,7 @@ impl KinematicCharacterController { &-self.up, character_shape, snap_distance + offset, - false, + true, filter, ) { // Apply the snap. @@ -571,7 +571,7 @@ impl KinematicCharacterController { &self.up, character_shape, max_height, - false, + true, filter, ) .is_some() @@ -588,7 +588,7 @@ impl KinematicCharacterController { &horizontal_dir, character_shape, min_width, - false, + true, filter, ) .is_some() @@ -607,7 +607,7 @@ impl KinematicCharacterController { &-self.up, character_shape, max_height, - false, + true, filter, ) { let [_vertical_slope_translation, horizontal_slope_translation] = @@ -634,7 +634,7 @@ impl KinematicCharacterController { &-self.up, character_shape, max_height, - false, + true, filter, ) .map(|hit| hit.1.toi) |
