imbuedl

ESS Turns

Dec 31st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. have to hold ess for 2 frames to get 1 frame of ess turn
  2. turned 1800 units right
  3. turned 1800 units left
  4.  
  5. camera angle = initial angle
  6.  
  7. takes 10 frames to completely ess turn right
  8.  
  9. 1800 unit change for each of the first 9 frames, 184 unit change for last frame (total of 2^14 units)
  10.  
  11. targeting at the end makes camera angle = angle
  12.  
  13. ---
  14.  
  15. initial angle = -5957
  16. initial camera angle = -5870
  17.  
  18. initial angle - initial camera angle = -5957 - (-5870) = -87
  19.  
  20. 1800 for first 9 frames, then 97 for 10th frame (final angle = -22254)
  21. this is the same as a direct right turn
  22. while final angle is -22254, targeting gives us a final camera angle of -22244
  23.  
  24. final angle - final camera angle = -22254 - (-22244) = -10
  25.  
  26. 184 + (-87) = 97
  27.  
  28. ---
  29.  
  30. (turning right)
  31.  
  32. initial angle = -32560
  33. initial camera angle = -32558
  34.  
  35. initial angle - initial camera angle = -32560 - (-32558) = -2
  36.  
  37. 1800 for first 9 frames, then 182 for the last frame
  38.  
  39. final angle - final camera angle = 16594 - 16592 = 2
  40.  
  41. 184 + (-2) = 182
  42.  
  43.  
  44. (if turning left, get -1800 change per frame and then -184 on 10th frame, so turning from left to right is perfect 180 deg turn)
  45.  
  46.  
  47.  
  48. =====
  49.  
  50. The first 9 frames he turns 1800 units per frame and then on the 10th frame he turns 184 + [(initial angle) - (initial camera angle) ] (so if initial angle = initial camera angle, link turns 1800*9 + 184 = 2^14 units)
Add Comment
Please, Sign In to add comment