diff options
| author | Jan Hohenheim <jan@hohenheim.ch> | 2023-02-04 20:35:42 +0100 |
|---|---|---|
| committer | Jan Hohenheim <jan@hohenheim.ch> | 2023-02-04 20:35:42 +0100 |
| commit | f9a50856be6c4976c3a1379570bf46b01b421054 (patch) | |
| tree | 1dd35f21e0280d61402a210c5720e7d7a25596af | |
| parent | 39998e96e8f887afdf79c02c7873d7c70bf1530c (diff) | |
| download | rapier-f9a50856be6c4976c3a1379570bf46b01b421054.tar.gz rapier-f9a50856be6c4976c3a1379570bf46b01b421054.tar.bz2 rapier-f9a50856be6c4976c3a1379570bf46b01b421054.zip | |
Add debug messages
| -rw-r--r-- | src/control/character_controller.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/control/character_controller.rs b/src/control/character_controller.rs index 49373d1..c258b7a 100644 --- a/src/control/character_controller.rs +++ b/src/control/character_controller.rs @@ -406,6 +406,14 @@ impl KinematicCharacterController { let normal = -(character_pos * m.local_n1); if normal.dot(&self.up) >= 1.0e-5 { grounded = true; + println!("grounded!"); + println!("normal: {:?}", normal); + println!("up: {:?}", self.up); + println!("dot: {:?}", normal.dot(&self.up)); + println!("character_pos: {:?}", character_pos); + println!("m.local_n1: {:?}", m.local_n1); + println!("m.local_n2: {:?}", m.local_n2); + println!(); } if let Some(kinematic_parent) = kinematic_parent { |
