projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- data/levels/default/ moved to data/levels/worldmap/
[supertux.git]
/
src
/
physic.h
diff --git
a/src/physic.h
b/src/physic.h
index
8e467d7
..
002b42f
100644
(file)
--- a/
src/physic.h
+++ b/
src/physic.h
@@
-51,6
+51,9
@@
public:
*/
void set_acceleration(float ax, float ay);
*/
void set_acceleration(float ax, float ay);
+ void set_acceleration_x(float ax);
+ void set_acceleration_y(float ay);
+
float get_acceleration_x();
float get_acceleration_y();
float get_acceleration_x();
float get_acceleration_y();
@@
-60,6
+63,9
@@
public:
/** applies the physical simulation to given x and y coordinates */
void apply(float frame_ratio, float &x, float &y);
/** applies the physical simulation to given x and y coordinates */
void apply(float frame_ratio, float &x, float &y);
+ /** applies the physical simulation to given x and y coordinates */
+ void apply(Vector& vector, float frame_ratio);
+
private:
/// horizontal and vertical acceleration
float ax, ay;
private:
/// horizontal and vertical acceleration
float ax, ay;