projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- fixed problem with last_menu not being able to handle menues deeper than two submenues
[supertux.git]
/
src
/
physic.cpp
diff --git
a/src/physic.cpp
b/src/physic.cpp
index
232475d
..
243e8cf
100644
(file)
--- a/
src/physic.cpp
+++ b/
src/physic.cpp
@@
-41,6
+41,16
@@
Physic::set_velocity(float nvx, float nvy)
vy = -nvy;
}
+void Physic::inverse_velocity_x()
+{
+vx = -vx;
+}
+
+void Physic::inverse_velocity_y()
+{
+vy = -vy;
+}
+
float
Physic::get_velocity_x()
{