trananh1992 / rokon

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

Movement.SLOWING mimics Movement.BICUBIC #163

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use Movement.getPosition with Movement.SLOWING parameter
2. look at Movement source reveals SLOWING == CUBIC

What is the expected output?
slowing behaviour

What do you see instead?
cubic behaviour

What version of Rokon are you using?
2.0.3

On which version of Android are you experiencing this?
any

Please provide any additional information below.

Example fix:
 ...
 public final static SLOWING = 5;
 ...
 case SLOWING:
   return (float)Math.cos(position * PI_OVER_TWO - PI_OVER_TWO); 
 ...

I also attached a modified version of Movement.java

Original issue reported on code.google.com by mycellph...@googlemail.com on 21 Sep 2010 at 11:14

Attachments: