How to calculate velocity needed to hit a player

I’m coding an autofiring cannon turret thing and I want to know how to calculate the needed velocity for the part it fires to hit a player if they’re standing still while within range of 50 studs.

There is a little more information needed in order to solve this. For any solution, I would recommend looking into Kinematics. We would need to know the angle that the cannon is firing from, or the time (how many seconds from launch) that you want to hit the player.

well i have the cannon constantly aim at the closest player and i’m planning on making it fire every second

and that kinematics stuff looks WAYY too confusing so i’m not sure if i can do this

actually wait i’m stupid :sob:

i can just use a fixed velocity because the cannon automatically aims towards the player

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.