Motion After Rotation In Sdl C++

int angle_rad=angle*PI/180;

Your radians are being stored in an integer, so they will get truncated to the nearest whole number. Store them in a float or a double instead.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top