Свойство | Type | Description | |
---|---|---|---|
remainder | float |
Méthode | Description | |
---|---|---|
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.
|