danielfoutz
Member
I'm working on a prototype for a very silly little physics game where you play as a butt and you propel yourself around the stage with your farts. I know, it's very stupid. My problem comes because I want the player to have control over the rotation of the butt and then add an impulse to push them in the direction they are rotated towards.
I've tried using various combinations of physics_apply_local_force, physics_apply_force, physics_apply_impulse, and physics_apply_local_impulse, but I've only been able to either get the character to rotate rapidly or else be pushed in a constant direction rather than one relative to their phy_rotation.
Would anyone be able to give me some tips or else point me in the direction of where I could learn how to apply force relative to rotation direction using box2d physics? It would be much appreciated.
*edit: I attached a picture to try and help demonstrate. The idea is that you control the finger at the top of the hand which is connected to the hand via a revolute joint. The force should come from the butt at the bottom of the hand and propel the player in the rotated direction.
I've tried using various combinations of physics_apply_local_force, physics_apply_force, physics_apply_impulse, and physics_apply_local_impulse, but I've only been able to either get the character to rotate rapidly or else be pushed in a constant direction rather than one relative to their phy_rotation.
Would anyone be able to give me some tips or else point me in the direction of where I could learn how to apply force relative to rotation direction using box2d physics? It would be much appreciated.
*edit: I attached a picture to try and help demonstrate. The idea is that you control the finger at the top of the hand which is connected to the hand via a revolute joint. The force should come from the butt at the bottom of the hand and propel the player in the rotated direction.
Attachments
-
21.4 KB Views: 3
Last edited: