aiming projectiles, not linecasts, physical projectiles.

Ryu_Kynn
Mon, 21 Dec 2020 05:04:20 +0000
UI

so I made a bow and it shoots arrows, suprize yeah. But i have no clue on how to aim that bow. it works perfectly just i dont know how to get it to shoot to the crosshair.

i know that the crosshair is on the camera and not in the game or whatever. i can get the exact vector location that i want the arrow to hit using a line cast by channel but i dont know how to tell the projectile to hit that vector (target) .

all the crosshair shooting i find on the internet have linecast fake bullets, and all the real physical projectiles i find dont use any crosshair whatsoever.

now i can change the pitch of the bow and set initial velocity after finding the straight line distance to the target that i get from the linecast using the equations of projectile motion from high school. but i have a feeling that that would be hugely unnecessary.

thanks in advance.

3 posts - 1 participant