Advertisement
Mechalico

Seesaw Info

Feb 21st, 2017
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. SEESAWS
  2.  
  3. Fixed Jul 2017 to correct byte definitions (originally reversed due to bad data)
  4.  
  5. Seesaws are defined in their collision headers.
  6. Firstly, the two bytes at 0x12 define a seesaw. 00 02 is a seesaw, 00 00 is not.
  7. Secondly, the three bytes at 0xB8 appear to refer to:
  8. - The sensitivity (higher is more sensitive - negative is reverse)
  9. - The reset stiffness (lower is looser)
  10. - The bounds of rotation (higher is less)
  11. Thirdly, the centre of the seesaw is probably the centre of animation. This will probably need a look though, as the offset at 0xB4 is a similar value.
  12. The pivot appears to be the X axis as base, but offset by natural rotation.
  13.  
  14.  
  15. SEESAW BRIDGES STORY MODE (STAGE026)
  16.  
  17. Offset of second header, 0x3D64
  18. This is the second seesaw.
  19.  
  20. Initial position data:
  21.  
  22. 37 6A E1 8B <- ~0
  23. 00 00 00 00
  24. 42 B8 00 01 <- ~92
  25. 00 00
  26. C0 00 <- 270 degrees
  27. 00 00
  28. 00 02 <- Seesaw definition
  29.  
  30. At an additional offset of 0xB8 (ie at 0x3E1C):
  31.  
  32. 3F 19 99 9A <- 0.6 (this seesaw is less sensitive than the other two)
  33. 3F 80 00 00 <- 1
  34. 3F 80 00 00 <- 1
  35.  
  36.  
  37. Offset of third header, 0x4200
  38. This is the third seesaw.
  39.  
  40. Initial position data:
  41.  
  42. C2 9F FF FF <- ~-80
  43. 00 00 00 00
  44. 41 40 00 0A <- ~12
  45. 00 00
  46. 80 00 <- 180 degrees
  47. 00 00
  48. 00 02
  49.  
  50. At an additional offset of 0xB8 (ie at 0x42B8)
  51.  
  52. 00 00 37 54
  53. 3F 80 00 00 <- 1
  54. 3F 80 00 00 <- 1
  55. 3F 80 00 00 <- 1
  56.  
  57.  
  58. Offset of fourth header, 0x469B
  59. This is the first seesaw.
  60.  
  61. 42 A0 00 01 <- ~-80
  62. 00 00 00 00
  63. 41 40 00 00 <- 12
  64. 00 00
  65. 80 00 <- 180 degrees
  66. 00 00
  67. 00 02
  68.  
  69. At an additional offset of 0xB8 (ie at 0x4754)
  70.  
  71. 3F 80 00 00 <- 1
  72. 3F 80 00 00 <- 1
  73. 3F 80 00 00 <- 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement