Author: grumbel
Date: 2007-10-29 05:28:09 +0100 (Mon, 29 Oct 2007)
New Revision: 3377
Modified:
trunk/pingus/src/actions/faller.cpp
Log:
- reduce velocity on head bounce to simulate some friction
Modified: trunk/pingus/src/actions/faller.cpp
===================================================================
--- trunk/pingus/src/actions/faller.cpp 2007-10-29 04:23:03 UTC (rev 3376)
+++ trunk/pingus/src/actions/faller.cpp 2007-10-29 04:28:09 UTC (rev 3377)
@@ -125,9 +125,9 @@
// If the Pingu collided into something while moving up...
else // if (velocity.y < 0.0f)
{
- std::cout << "Head bounce" << std::endl;
// Don't make the Pingu go up any further.
velocity.y = 0;
+ velocity.x = (velocity.x / 3.0f);
pingu->set_velocity(velocity);
}
_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs