Developer knowledge network · moderated exchange

UnreliableCode コミュニティ

開発者リサーチ、リバース エンジニアリング、コーディング コミュニティ

Guide

Kraber & Sentinel ballistic trajectory lead prediction math

apex_kraber_god
Member
MEMBER
担当者: 178
参加日: Jul 2022
投稿: 7
ありがとう: 86
1 か月前 · Jul 1, 2026 5:07 AM
#1

Physics formula for 500m sniper shots in Apex Legends:

CPP
Vector3 CalculateApexLead(Vector3 muzzlePos, Vector3 targetHead, Vector3 targetVelocity, float bulletSpeed, float bulletGravity) {
    float dist = (targetHead - muzzlePos).Length();
    float time = dist / bulletSpeed;
    
    // Account for acceleration if target is sliding/jumping
    Vector3 predictedPos = targetHead + (targetVelocity * time);
    
    // Gravity constant in Apex is 750.0f units/sec^2
    float gravityDrop = 0.5f * (750.0f * bulletGravity) * (time * time);
    predictedPos.z += gravityDrop;
    
    return predictedPos;
}

Kraber bulletSpeed = 29500.0f, Sentinel bulletSpeed = 31000.0f.

raycast_ryan
Ballistics Dev
MEMBER
担当者: 72
参加日: Sep 2019
投稿: 32
ありがとう: 16
1 か月前 · Jul 1, 2026 7:25 AM
#2

Tested on firing range moving targets from 450 meters away: 100% headshot accuracy.

matrix_math_guy
Math Specialist
MEMBER
担当者: 105
参加日: Aug 2018
投稿: 52
ありがとう: 41
1 か月前 · Jul 1, 2026 7:09 PM
#3

The 750.0f gravity constant matches engine dumps perfectly.