[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/input/pointers axis_pointer.cxx,1.2,1
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/input/pointers axis_pointer.cxx,1.2,1.3 |
Date: |
28 Oct 2002 22:40:25 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/input/pointers
In directory dark:/tmp/cvs-serv2855/src/input/pointers
Modified Files:
axis_pointer.cxx
Log Message:
corrected bug with angle handling
Index: axis_pointer.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/pointers/axis_pointer.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- axis_pointer.cxx 26 Aug 2002 13:53:04 -0000 1.2
+++ axis_pointer.cxx 28 Oct 2002 22:40:23 -0000 1.3
@@ -64,8 +64,8 @@
{
(*it)->update(delta);
- x_pos += cos((*it)->get_angle()) * speed * delta;
- y_pos += sin((*it)->get_angle()) * speed * delta;
+ x_pos += cos((*it)->get_angle() * 3.14159265 / 180) * speed * delta
* (*it)->get_pos();
+ y_pos += sin((*it)->get_angle() * 3.14159265 / 180) * speed * delta
* (*it)->get_pos();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/input/pointers axis_pointer.cxx,1.2,1.3,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.30,1.31 client.hxx,1.23,1.24 gui_screen.cxx,1.12,1.13 gui_screen.hxx,1.12,1.13 input_debug_screen.cxx,1.4,1.5 playfield.cxx,1.27,1.28
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.31,1.32
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.30,1.31 client.hxx,1.23,1.24 gui_screen.cxx,1.12,1.13 gui_screen.hxx,1.12,1.13 input_debug_screen.cxx,1.4,1.5 playfield.cxx,1.27,1.28
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.31,1.32
- Index(es):