Computer Science Canada Rotate Around a Point |
Author: | Expirant [ Sat Oct 28, 2006 10:37 pm ] | ||
Post subject: | Rotate Around a Point | ||
I've been trying to figure this out, but I'm having a lot more trouble using sind and cosd on the computer than I do on paper. I need the image I've drawn with the procedure "DrawSoldier" to rotate around the soldier's head (The red circle). I know it's small, but there's a reason. Could someone possibly help out? I know there are a lot of variables, I just made this very quick tonight and I work in simple terms when trying to figure something out. I'll paste my code below this, and if someone could alter it to the desired effect that'd be awesome. Thanks.
Give the arms and head and shoulders and gun whatever coordinates you want, so long as the soldier is that big. I just had all those variables to make everything relative to the head, to make rotating the entire thing easier if I did indeed find out how. (Or make a completely new thing, so long as it demonstrates your point!) Thank ya, Expirant |
Author: | zylum [ Sat Oct 28, 2006 11:24 pm ] |
Post subject: | |
maybe this will help: http://compsci.ca/v2/viewtopic.php?t=13866 |
Author: | Expirant [ Sun Oct 29, 2006 9:36 am ] |
Post subject: | |
Thank Zylum, I'll look into that. I found a better tutorial though on how to rotate pictures properly (I couldn't do it before...yikes). Anyways, The tutorial by AsianSensation was really well done. Thanks again. AsianSensation tutorial on making a picture move in the direction it' facing: http://www.compsci.ca/v2/viewtopic.php?t=3542 |