Discuss issues specific the Java port of Box2D
1 post • Page 1 of 1
Hey guys, right now I have my player body that is contained within 4 boxes so the player won't go out of bounds. Now what I want to do is to my body to go to the mouse click coordinates with some constant speed and stop once he reaches the destination. I somewhat can do that with translate but the problems starts once it collides with those boxes preventing him to go out of bounds. If I click long enough it can go through them with translate, or sometimes it tends to move a bit once it collides with those wall boundaries and I have the player with high friction to prevent that but still happens. Is there any better solutions for this?
Who is online
Users browsing this forum: No registered users and 1 guest