프로퍼티 | 타입 | 설명 | |
---|---|---|---|
remainder | float |
메소드 | 설명 | |
---|---|---|
reset ( ) : void |
resets the remainder to 0. Useful when an object collides with an immovable object. In that case you will want to zero out the subpixel remainder since it is null and void due to the collision.
|
|
update ( float &amount ) : void |
increments remainder by amount, truncates the value to an int, stores off the new remainder and sets amount to the current value.
|