2DPlatformer-Tutorial icon indicating copy to clipboard operation
2DPlatformer-Tutorial copied to clipboard

Using bounds to get player position

Open BumpkinRich opened this issue 6 years ago • 1 comments

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 avatar Jul 12 '19 20:07 BumpkinRich

@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?

arvz avatar Oct 20 '24 06:10 arvz