Developer knowledge network · moderated exchange

UnreliableCode 커뮤니티

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

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

Rust IL2CPP BasePlayer bone matrix extraction using Ghidra & Il2CppDumper

unity_il2cpp_dan
IL2CPP Reverser
MEMBER
대표: 46
가입 날짜: Jun 2020
게시물: 4
감사해요: 15
1개월 전 · Jun 27, 2026 2:45 AM
#1

To read skeletal bones in Rust Unity IL2CPP:

  1. From BasePlayer, read playerModel at offset 0x4C0.
  2. From PlayerModel, read _multiMesh at offset 0x280.
  3. From SkinnedMultiMesh, read boneTransforms at offset 0x48.
  4. Call Unity's internal Transform::GetPosition(Transform* transform, Vector3* outPos) or read the native bone matrix cache array.

Head bone is indexed at head (boneTransforms[47]), neck is neck (boneTransforms[46]).

rust_recoil_king
Member
MEMBER
대표: 190
가입 날짜: May 2022
게시물: 5
감사해요: 48
1개월 전 · Jun 27, 2026 5:35 AM
#2

To avoid invoking Unity functions from external, you can traverse the transform hierarchy using pTransform->pTransformData->pMatrices directly!

raycast_ryan
Ballistics Dev
MEMBER
대표: 72
가입 날짜: Sep 2019
게시물: 32
감사해요: 16
1개월 전 · Jun 27, 2026 11:48 PM
#3

Traversing TransformData matrix array in C++ gives bone world coordinates in 0.05 microseconds. Highly recommended.