03.04.2010, 00:29
I need to find the point behind a car, no matter what direction its facing. Haven't taken a calc class yet, I think that's what I need here. I believe this is the code I need, but i don't know anything at all about sine/cosine
Id like an explanation too so I can do it myself in the future.
Код:
X += (5.0*floatsin(-(A-45.0), degrees)); Y += (5.0*floatcos(-(A-45.0), degrees));
Thanks
Hiaburi
Hiaburi