Computer Science Canada How would I simulate the function "degtorad" in tu |
Author: | s_climax [ Mon May 03, 2004 3:15 pm ] | ||
Post subject: | How would I simulate the function "degtorad" in tu | ||
How would I go about converting this into Turing?
|
Author: | Delos [ Mon May 03, 2004 3:22 pm ] |
Post subject: | |
Just a quick thought: by default sin, cos, and tan all return radian values. sind, cosd, and tand return degree values. May be of some help. |
Author: | Mazer [ Mon May 03, 2004 4:58 pm ] |
Post subject: | |
Delos, you meant to say that sin and cos take radian values and sind and cosd take degree values, right? Anyways, s_climax if you can use trig you should probably already know how to convert from degrees to radians, but if not I believe it was pi / 180 = r / d. Or something... I never use radians (they're for sissies ). |
Author: | s_climax [ Mon May 03, 2004 4:58 pm ] | ||
Post subject: | |||
Thanks. One more question then. Why is it that in my code, when the direction is 180 the character does not move straight up?
By the way, the part about the timer being mod 10 is only necessary as a tempory fix. I should not need it. However, without it my character turns too quick. Any help? |
Author: | zylum [ Mon May 03, 2004 7:29 pm ] | ||
Post subject: | |||
i didnt want to alter your code too much but this should help:
-zylum |
Author: | s_climax [ Mon May 03, 2004 9:02 pm ] |
Post subject: | |
Thanks. Judging from the differences, I see two main things I did wrong. First it was cosd and sind instead of just sin and cos. Second I should have rounded at the end to prevent jerkiness. Can you tell me if this is correct? |
Author: | djlenny_3000 [ Tue May 04, 2004 1:53 pm ] |
Post subject: | |
hey not bad but i have one coment y not put a triangle or somesort of marker to show the front and make a car driving program cuz what u have so far is very cool |