How to fire a projectile from the camera, but have it visually leave from third person character

Hi all! I’ve wrote a script for projectile physics but it doesn’t behave the way I want it to. I managed to get it working the way I want to by firing the projectile from the player’s camera instead of their third person character. However I’m not able to figure out how to get the projectile to leave from the player instead of the character. Here’s a couple Gyazo videos that depict what illustrate my case:

Projectile shot from TP character: https://gyazo.com/7929f61ac910d06b0d94bef8dfd9960c

Projectile shot from camera: https://gyazo.com/42195c0a30517ca4e61a8722f9d24ffd

There’s nothing wrong with my script per se, I guess this is more of a question of how to approach a problem rather than fixing code. But if you need to see my script I’m more than happy to edit my post :slight_smile: Thanks for your time.

1 Like

You do both separately. First you invisible raycast from the camera to get your target. Then you fire projectile from character towards the target you got from the raycast.

1 Like