Developer knowledge network · moderated exchange

UnreliableCode コミュニティ

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

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.