Timeline for How to calculate move forward direction in Libgdx with Box2d body
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 11, 2016 at 16:00 | vote | accept | İbrahim Kasapoğlu | ||
| Aug 11, 2016 at 15:59 | vote | accept | İbrahim Kasapoğlu | ||
| Aug 11, 2016 at 16:00 | |||||
| Aug 11, 2016 at 15:59 | comment | added | İbrahim Kasapoğlu | Thanks for your suggestion it didn't work, anyway I rotated my bodies when I create them and it is working now. I hope it will not give a problem in the future. Thanks a lot again. | |
| Aug 11, 2016 at 15:16 | comment | added | Applekini | Could you try using float angle = -body.getAngle()(negative angle) and see if this fixes it? | |
| Aug 10, 2016 at 10:27 | comment | added | İbrahim Kasapoğlu | Thank you for your reply, this help me so much actually It is exactly what I am looking for and I will mark it as answer. It's working perfectly BUT another problem is as if my body's look at the side right direction, so, when I press 'W' it's going to right side but it should go to the top side so wrong rotated how can I solved this ? Is there a way to set it like setOrign() method ? And this picture will help you to got it. the picture | |
| Aug 10, 2016 at 0:42 | history | answered | Applekini | CC BY-SA 3.0 |