how do I add a force towards a position with a rigidbody2D like when you shoot a bazooka then you get a bit of a knockback how do I do that
assuming you do something like
shell.AddForce(transform.forward * thrust);
to shoot the bazooka shell, use
shooter.AddForce( -transform.forward * thrust/10);
to apply a knockback force to the shooter. A little less force in the opposite direction.