hiteshsuthar / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

DynamicObject incorrect behavior with negative acceleration #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call DynamicObject.accelerate(float accelerationX, float accelerationY, 
float terminalVelocityX, float terminalVelocityY) with negative 
acceleration and responding terminal velocity lower than the object's 
current.

What is the expected output? What do you see instead?
It should stop (de)accelerating at specified terminal velocity. Instead, 
it stops immediately.

What version of the product are you using? On what operating system?
This affects all SVN trunk (r69)/texture_refactor branch/release 1.02 
(where it's an issue of Sprite instead of DynamicObject).

Patch fixing this issue is attached, haven't done any regression tests of 
it, but I think it's pretty straightforward so it should be OK.

Original issue reported on code.google.com by reddra...@gmail.com on 29 Dec 2009 at 11:28

Attachments:

GoogleCodeExporter commented 8 years ago
I've applied it to the 1.1.0 branch, looking at it I can't see why it would 
cause any 
new bugs, and the examples still work the same.

Thanks for this :)

Original comment by rtaylor205@gmail.com on 29 Dec 2009 at 12:18