diff options
| author | Jan Nils Ferner <contact@jnferner.com> | 2023-01-26 23:55:16 +0100 |
|---|---|---|
| committer | Jan Nils Ferner <contact@jnferner.com> | 2023-01-26 23:55:16 +0100 |
| commit | 5d7fdebea43b8cd09217f2666d1ad101fa29bb9a (patch) | |
| tree | b272193284c65b3f549ead6e30601638bd41fa04 /src/control/character_controller.rs | |
| parent | d5cd4fe4bc36feaae40a41f0d07d8bffae4383d5 (diff) | |
| download | rapier-5d7fdebea43b8cd09217f2666d1ad101fa29bb9a.tar.gz rapier-5d7fdebea43b8cd09217f2666d1ad101fa29bb9a.tar.bz2 rapier-5d7fdebea43b8cd09217f2666d1ad101fa29bb9a.zip | |
Play around with offset
Diffstat (limited to 'src/control/character_controller.rs')
| -rw-r--r-- | src/control/character_controller.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/character_controller.rs b/src/control/character_controller.rs index ef8973c..d49019c 100644 --- a/src/control/character_controller.rs +++ b/src/control/character_controller.rs @@ -734,6 +734,6 @@ impl KinematicCharacterController { } fn subtract_hit(translation: Vector<Real>, hit: &TOI, offset: Real) -> Vector<Real> { - let hit_normal = (translation.dot(&hit.normal1) * (1.0 + offset)).min(0.0); + let hit_normal = (translation.dot(&hit.normal1) * (1.0 + 0.)).min(0.0); translation - *hit.normal1 * hit_normal } |
