Advertisement
fig02

E8 calculation

Mar 3rd, 2020
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1. a0 = globalCtx+11D60 (dbg)
  2. a1 = actor+24 (world coords)
  3. a2 = actor+0xE4 (mtx coords we are interested in)
  4. a3 = actor+0xF0 (seems to always be 0x0043AF00 for chu at least)
  5.  
  6. void func_800A6E10(void *arg0, void *arg1, void *arg2, void *arg3)
  7. {
  8.     actorE4 = (mtx->unk30 + (((actor->x * mtx->unk0) + (actor->y * mtx->unk10)) + (actor->z * mtx->unk20)));
  9.     actorE8 = (mtx->unk34 + (((actor->x * mtx->unk4) + (actor->y * mtx->unk14)) + (actor->z * mtx->unk24)));
  10.     actorEC = (mtx->unk38 + (((actor->x * mtx->unk8) + (actor->y * mtx->unk18)) + (actor->z * mtx->unk28)));
  11.     *arg3 = (arg0->unk3C + (((arg1->unk0 * arg0->unkC) + (arg1->unk4 * arg0->unk1C)) + (arg1->unk8 * arg0->unk2C)));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement