We have platforms made up of odd shaped polygons and we need actors to rotate as they move along them based on the angle of the side they are currently colliding with. If I can get the b2Vec2 pair of the side currently being collided with I can calculate the angle of inclination and then apply the angle to the actor. This is so they can rotate correctly as they walk up and down sloped platforms.
So how do I get the b2Vec2 pair of the side currently being collided with?
Also is this the best way to have a box move along an angled polygon or do you suggest another way?
Finally will you be implementing a b2CapsuleShape any time in the near future?
So how do I get the b2Vec2 pair of the side currently being collided with?
Also is this the best way to have a box move along an angled polygon or do you suggest another way?
Finally will you be implementing a b2CapsuleShape any time in the near future?