Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mitop

Pages: [1]
1
General / SFML cicrle movement
« on: December 21, 2018, 03:50:23 pm »
Does anybody know how to make something like circle movement in SFML? I would like to make some game with tank as main character. Its moveing only forward or backward and rotate. So how can i apply movement to degree? Sorry for my languga mistakes and tell me if i wrote something incorrectly! Thanks for any respond.

Okay i know for everybody that wants to know:
body.move( -sin(body.getRotation()*3.14159265 / 180)*-3, -cos(body.getRotation()*3.14159265 / 180) * 3);

Pages: [1]