2DPlatformer-Tutorial
2DPlatformer-Tutorial copied to clipboard
Using bounds to get player position
There is an issue with using the bounds of a BoxCollider2D outside of the fixed update loop.
From the tests I have done the bounds may not always be relative to the player position in the update loop. This means the raycasts which use the bounds position may return no collision when they should be.
@BumpkinRich I've just discovered this issue as well! for some reason it doesn't happen in any Unity versions until I upgraded to Unity 6 just yesterday. I know it's been a few years but were you able to resolve this by any chance?