Hello im very new to unity I want to knock the gameobject to the same direction as the projectile but unfortunately i was able to knock it horizontally and vertically. im unable to knock it at angle and also this is a 2d game.
they do something similar to to what you’re asking in this video, about half-way.
they shoot a bear with a capsule collider, and apply force where the “projectile” hit, and send the bear flying in that direction.