12,751,306 members (33,244 online)

# Algorithms

 Re: Factorials Luc Pattyn25-Jun-08 0:53 Luc Pattyn 25-Jun-08 0:53
 Re: Factorials cp987625-Jun-08 3:27 cp9876 25-Jun-08 3:27
 Re: Factorials Luc Pattyn25-Jun-08 3:34 Luc Pattyn 25-Jun-08 3:34
 Re: Factorials cp987625-Jun-08 3:40 cp9876 25-Jun-08 3:40
 Re: Factorials tim_one14-Jul-08 9:37 tim_one 14-Jul-08 9:37
 Re: Factorials Arash Partow25-Jun-08 3:14 Arash Partow 25-Jun-08 3:14
 Re: Factorials Ian Uy25-Jun-08 7:26 Ian Uy 25-Jun-08 7:26
 How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 9:35 Edmundisme 18-Jun-08 9:35
 Hello,I'm putting together a Silverlight 2 demo application. It is going to be a simple 2-D tank game where you can use the arrow keys to rotate and move the tank. The tank can point in any direction (360 possible directions, right?). I've written the code to rotate the tank, but I'm not sure where to begin regarding moving the tank. How can I take the angle of the tank (say, 156 degrees for example) and use that to determine the next x,y position of the tank when it moves forward? I'm sure there must be a simple equation for this, but I don't know what it would be called or even how to google this problem.Any ideas?Thanks,Ian
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... 73Zeppelin18-Jun-08 12:38 73Zeppelin 18-Jun-08 12:38
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Matthew Butler18-Jun-08 12:44 Matthew Butler 18-Jun-08 12:44
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... 73Zeppelin18-Jun-08 23:00 73Zeppelin 18-Jun-08 23:00
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 13:00 Edmundisme 18-Jun-08 13:00
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Matthew Butler18-Jun-08 12:41 Matthew Butler 18-Jun-08 12:41
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 13:01 Edmundisme 18-Jun-08 13:01
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... CPallini18-Jun-08 22:19 CPallini 18-Jun-08 22:19
 Polyline offset algorithm beko16-Jun-08 22:59 beko 16-Jun-08 22:59
 Re: Polyline offset algorithm Alan Balkany17-Jun-08 5:07 Alan Balkany 17-Jun-08 5:07
 Re: Polyline offset algorithm beko17-Jun-08 5:43 beko 17-Jun-08 5:43
 Re: Polyline offset algorithm CPallini17-Jun-08 8:03 CPallini 17-Jun-08 8:03
 Re: Polyline offset algorithm beko17-Jun-08 9:26 beko 17-Jun-08 9:26
 Re: Polyline offset algorithm cp987617-Jun-08 13:10 cp9876 17-Jun-08 13:10
 Re: Polyline offset algorithm Arash Partow18-Jun-08 2:22 Arash Partow 18-Jun-08 2:22
 Re: Polyline offset algorithm beko18-Jun-08 20:55 beko 18-Jun-08 20:55
 What's the period of (cos ax)(sin bx)? sherifffruitfly14-Jun-08 11:00 sherifffruitfly 14-Jun-08 11:00
 Re: What's the period of (cos ax)(sin bx)? cp987614-Jun-08 20:03 cp9876 14-Jun-08 20:03
 Last Visit: 31-Dec-99 19:00     Last Update: 21-Feb-17 4:37 Refresh « Prev1...161162163164165166167168169170 Next »