Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This patch file was generated by NetBeans IDE
- # This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
- # It uses platform neutral UTF-8 encoding.
- # Above lines and this line are ignored by the patching process.
- 120,122d119
- < private int dampCounter = 0;
- < private boolean doDamp = false;
- < private boolean isDamped = true;
- 177d173
- < // if (velocity.length() > 0) {
- 187d182
- < // }
- 189d183
- <
- 202,206d195
- <
- < isDamped = false;
- < } else {
- < if (!isDamped) {
- < doDamp = true;
- 208,210d196
- < }
- <
- < if (doDamp || designatedVelocity > 0) {
- 212,218d197
- <
- < if (doDamp) {
- < dampCounter++;
- < }
- < }
- <
- <
- 227,231d205
- <
- < if (dampCounter > 60) {
- < doDamp = false;
- < isDamped = true;
- < dampCounter = 0;
- 233d206
- < }
- 460,462c433
- < *
- < * @param physicsDamping The dampening value, 0 = no dampening, 1 = no
- < * external force, default = 0.9
- ---
- > * @param physicsDamping The dampening value, 0 = no dampening, 1 = no external force, default = 0.9
Advertisement
Add Comment
Please, Sign In to add comment