mifthbeat

Untitled

Jan 15th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. # This patch file was generated by NetBeans IDE
  2. # This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
  3. # It uses platform neutral UTF-8 encoding.
  4. # Above lines and this line are ignored by the patching process.
  5. 120,122d119
  6. < private int dampCounter = 0;
  7. < private boolean doDamp = false;
  8. < private boolean isDamped = true;
  9. 177d173
  10. < // if (velocity.length() > 0) {
  11. 187d182
  12. < // }
  13. 189d183
  14. <
  15. 202,206d195
  16. <
  17. < isDamped = false;
  18. < } else {
  19. < if (!isDamped) {
  20. < doDamp = true;
  21. 208,210d196
  22. < }
  23. <
  24. < if (doDamp || designatedVelocity > 0) {
  25. 212,218d197
  26. <
  27. < if (doDamp) {
  28. < dampCounter++;
  29. < }
  30. < }
  31. <
  32. <
  33. 227,231d205
  34. <
  35. < if (dampCounter > 60) {
  36. < doDamp = false;
  37. < isDamped = true;
  38. < dampCounter = 0;
  39. 233d206
  40. < }
  41. 460,462c433
  42. < *
  43. < * @param physicsDamping The dampening value, 0 = no dampening, 1 = no
  44. < * external force, default = 0.9
  45. ---
  46. > * @param physicsDamping The dampening value, 0 = no dampening, 1 = no external force, default = 0.9
Advertisement
Add Comment
Please, Sign In to add comment