Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. // On disk
  2. struct MotionChannelHeader
  3. {
  4. uint8 Zero;
  5. uint8 TypeFlags; // 0 = TimeCoded, 1 = AdaptiveDelta4, 2 = AdaptiveDelta8
  6. uint8 VectorLength
  7. uint8 unk1;
  8. sint16 unk2;
  9. sint16; unk3;
  10. };
  11.  
  12. // On disk, follows MotionChannelHeader, vector length cannot be > 4, 1 = Scalar, 3 = Vector, 4 = Quaternion
  13. struct AdaptiveDeltaHeader
  14. {
  15. float unk4;
  16. float vector[4];
  17. uint8 data[chunksize - 12 - 4 * vectorlength];
  18. }
  19.  
  20. // In memory
  21. struct MotionChannel
  22. {
  23. void *vtable;
  24. int unk1;
  25. int unk3;
  26. int unk2;
  27. int VectorLength;
  28. float unk4;
  29. float vector[4]; // Could be a union?
  30. uint8 *data;
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement