diff options
author | aap <aap@papnet.eu> | 2020-06-04 17:49:27 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-06-04 17:49:27 +0200 |
commit | f7612c4a496d2eccb0c44c467b8e4c79c6d383f5 (patch) | |
tree | 29578d064a89e1fdd179140f64d240fed1e73fbb | |
parent | more CBike and fixes (diff) | |
download | re3-f7612c4a496d2eccb0c44c467b8e4c79c6d383f5.tar re3-f7612c4a496d2eccb0c44c467b8e4c79c6d383f5.tar.gz re3-f7612c4a496d2eccb0c44c467b8e4c79c6d383f5.tar.bz2 re3-f7612c4a496d2eccb0c44c467b8e4c79c6d383f5.tar.lz re3-f7612c4a496d2eccb0c44c467b8e4c79c6d383f5.tar.xz re3-f7612c4a496d2eccb0c44c467b8e4c79c6d383f5.tar.zst re3-f7612c4a496d2eccb0c44c467b8e4c79c6d383f5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/Physical.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp index a5a1f110..332d3d81 100644 --- a/src/entities/Physical.cpp +++ b/src/entities/Physical.cpp @@ -458,7 +458,6 @@ CPhysical::ApplyFrictionTurnForce(float jx, float jy, float jz, float px, float m_vecTurnFriction += turnimpulse*(1.0f/m_fTurnMass); } -bool debugSprings; bool CPhysical::ApplySpringCollision(float springConst, CVector &springDir, CVector &point, float springRatio, float bias) { @@ -468,10 +467,6 @@ CPhysical::ApplySpringCollision(float springConst, CVector &springDir, CVector & float impulse = -GRAVITY*m_fMass*step * springConst * compression * bias*2.0f; ApplyMoveForce(springDir*impulse); ApplyTurnForce(springDir*impulse, point); -if(debugSprings){ -printf("spring : %.3f %.3f %.3f\n", springDir.x*impulse, springDir.y*impulse, springDir.z*impulse); -printf("speed: %.3f %.3f %.3f\n", m_vecMoveSpeed.x, m_vecMoveSpeed.y, m_vecMoveSpeed.z); -} } return true; } @@ -489,11 +484,6 @@ CPhysical::ApplySpringCollisionAlt(float springConst, CVector &springDir, CVecto impulse *= 0.75f; ApplyMoveForce(forceDir*impulse); ApplyTurnForce(forceDir*impulse, point); -if(debugSprings){ -printf("spring alt: %.3f %.3f %.3f %.3f\n", forceDir.x*impulse, forceDir.y*impulse, forceDir.z*impulse, springRatio); -printf("speed: %.3f %.3f %.3f\n", m_vecMoveSpeed.x, m_vecMoveSpeed.y, m_vecMoveSpeed.z); -printf("pos: %.3f %.3f %.3f\n", GetPosition().x, GetPosition().y, GetPosition().z); -} } return true; } |