Class which ensures whatver is being moved is snapped to a pixel position.
More...
|
float | Quantize (float position) |
| Quantize the specified position to a pixel position More...
|
|
Class which ensures whatver is being moved is snapped to a pixel position.
◆ Quantize()
float PlatformerPro.QuantizeMovementToPixels.Quantize |
( |
float |
position | ) |
|
|
protected |
Quantize the specified position to a pixel position
- Parameters
-
◆ initialised
bool PlatformerPro.QuantizeMovementToPixels.initialised |
|
protected |
Has this been initialised?
◆ orthoUnits
float PlatformerPro.QuantizeMovementToPixels.orthoUnits |
|
protected |
Ortho size (assume camera does not zoom).
◆ preRenderPosition
Vector3 PlatformerPro.QuantizeMovementToPixels.preRenderPosition |
|
protected |
Store actual position so we can revert after render.
◆ smoothingFactor
int PlatformerPro.QuantizeMovementToPixels.smoothingFactor = 8 |
Allow sub-pixel movement in smoothingFactor increments.
The documentation for this class was generated from the following file: