Hi,
if you play WOW you might know the dynamite that you can throw and that hits specific locations. I want to achieve something similar with using rigidbodys AddForce.
I want my NPC to spawn new characters and throw them to a specific location. They have to fly like (for example) baseball.
What Ive got is the Start Pos (Spawner) and the Target Pos (Random Location inside a Rectangle). I have to use AddForce for the rigidbody of the new Character.
What I need to know is the direction (I can calculate that), the angle for the steepness when throwing and the speed.
The new character has to land exactly at the target pos.
Does anybody has some code that would do that? I heard about trajectorie curves and read a bit, but I cant solve the math…