Using Pymunk's physics engine
Opened this issue · 0 comments
eschan145 commented
Using a pymunk
physics engine has multiple problems.
- Moving army. Needs to set
pymunk.Body.force
- Knockback for soldiers
- Collision checks (use
pymunk.Space.add_collision_handler()
- Arrows accelerating after fired
- Melee combat
A new strategy is needed. I've added ShapeFilter
s to specify collision so that arrows don't cause soldiers to move, using32-bitwise integers
.
Currently, when two armies clash, the attacking army always overpowers the other. The other army needs to apply force so they'd actually fight back, instead of just being pushed back.
Links for additional help: