Parent Directory | Revision Log | Patch
revision 1.71 by dheck, Thu Sep 11 18:18:20 2003 UTC | revision 1.72 by dheck, Fri Sep 12 21:46:25 2003 UTC | |
---|---|---|
# | Line 826 handle_stone_contact (StoneContact &sc, | Line 826 handle_stone_contact (StoneContact &sc, |
826 | sound::PlaySound(sc.sound.c_str(), sc.contact_point); | sound::PlaySound(sc.sound.c_str(), sc.contact_point); |
827 | // } | // } |
828 | } | } |
829 | double restitution = 0.8; | double restitution = 0.95; |
830 | ai.vel -= (1 + restitution)*(ai.vel*sc.normal)*sc.normal; | ai.vel -= (1 + restitution)*(ai.vel*sc.normal)*sc.normal; |
831 | ai.pos = ai.oldpos; // Reset actor position | ai.pos = ai.oldpos; // Reset actor position |
832 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |