Developer knowledge network · moderated exchange

UnreliableCode 커뮤니티

개발자 연구, 리버스 엔지니어링 및 코딩 커뮤니티

Knowledge index살다
4Categories
919Threads
2.8K게시물
Tutorial

Deriving 3D Pedestrian Bounding Boxes using ENTITY::GET_ENTITY_BONE_COORDS [v2.4 Technical Discussion]

matrix_math_guy
Math Specialist
MEMBER
대표: 105
가입 날짜: Aug 2018
게시물: 52
감사해요: 41
1개월 전 · Jul 16, 2026 6:31 AM
#1

Rendering oriented 3D bounding boxes on GTA V ped models:

CPP
void DrawPedBox3D(Ped ped, ImU32 color, const Matrix4x4& vMatrix) {
    Vector3 head = GetPedBoneCoords(ped, 31086); // SKEL_Head
    Vector3 lFoot = GetPedBoneCoords(ped, 63931); // SKEL_L_Foot
    Vector3 rFoot = GetPedBoneCoords(ped, 52301); // SKEL_R_Foot
    Vector3 feet = (lFoot + rFoot) * 0.5f;
    
    float height = head.z - feet.z + 0.35f;
    float width = 0.65f;
    
    DrawOriented3DBox(feet, width, height, GetEntityHeading(ped), color, vMatrix);
}
imgui_artisan
UI Designer
MEMBER
대표: 202
가입 날짜: Apr 2019
게시물: 54
감사해요: 28
1개월 전 · Jul 16, 2026 12:30 PM
#2

Averaging Left and Right foot bone coordinates ensures the box sits perfectly on the floor regardless of running animations.

raycast_ryan
Ballistics Dev
MEMBER
대표: 72
가입 날짜: Sep 2019
게시물: 32
감사해요: 16
1개월 전 · Jul 17, 2026 12:56 AM
#3

Clean bone mapping.