PSP Hacks - Forums

Go Back   PSP Hacks - Forums > PSP Community > PSP Programming & Development

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-30-2009, 11:15 PM
Stinkee2's Avatar
Stinkee2 Stinkee2 is offline
Programmer
PSP Smarty
 

Join Date: Jul 2009
Location: int main()
Posts: 197
Stinkee2 is on a distinguished road
Default strange rotation issue

Edit:
New Rotation code
Code:
void Vector::RotateAround(Vector *V,int Angle)
    {
        this->X = V->X + (this->DistanceFrom(V) * cosf(DegToRad(Angle)));
        this->Y = V->Y + (this->DistanceFrom(V) * sinf(DegToRad(Angle)));
    }
DegToRad Converts Degrees to Radians...
but still Whenever I try rotating a point using this method, It spirals inward until it gets to the origin (V).

What Am I Doing Wrong Here???
__________________
-----------------------------------------
View my current project's Progress Here

Last edited by Stinkee2; 10-01-2009 at 06:01 PM.
Reply With Quote
 

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©