aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Nils Ferner <contact@jnferner.com>2023-01-27 18:13:24 +0100
committerJan Nils Ferner <contact@jnferner.com>2023-01-27 18:13:24 +0100
commite25b61b4bb573e999b6dfe1102c5c0d157a0dfde (patch)
treef461af01457d532fc6a8c6707218788eb2b876c5
parent29dd3189baff85196af2bf1d2a447cba0df805f4 (diff)
downloadrapier-e25b61b4bb573e999b6dfe1102c5c0d157a0dfde.tar.gz
rapier-e25b61b4bb573e999b6dfe1102c5c0d157a0dfde.tar.bz2
rapier-e25b61b4bb573e999b6dfe1102c5c0d157a0dfde.zip
Remove debug prints
-rw-r--r--src/control/character_controller.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/control/character_controller.rs b/src/control/character_controller.rs
index 48db3d4..6108487 100644
--- a/src/control/character_controller.rs
+++ b/src/control/character_controller.rs
@@ -346,7 +346,6 @@ impl KinematicCharacterController {
if snap_distance.abs() > 1.0e-5 {
result.translation -= *self.up * snap_distance;
}
- println!("snap");
result.grounded = true;
return Some((hit_handle, hit));
}
@@ -413,8 +412,7 @@ impl KinematicCharacterController {
let normal1 = character_pos * m.local_n1;
let normal2 = -normal1;
- if normal1.dot(&self.up).abs() <= -1.0e-5 {
- println!("Grounded 1");
+ if normal1.dot(&self.up) <= -1.0e-5 {
grounded = true;
}
@@ -463,10 +461,9 @@ impl KinematicCharacterController {
for m in &manifolds {
let normal = character_pos * m.local_n1;
- if normal.dot(&self.up).abs() <= -1.0e-5 {
+ if normal.dot(&self.up) <= -1.0e-5 {
for contact in &m.points {
if contact.dist <= prediction {
- println!("Grounded 2");
grounded = true;
return false; // We can stop the search early.
}