I’ve put in a raycaster in my Update function.
Now supposedely, these should run every frame.
The point of this raycaster is to check if the player has walked over a bonus game object (so basically, if the raycast hits a bonus tile, which is on the floor, he picks it up).
What happens is, sometimes it just completely ignores the bonus and walks over it.
Its completely at random, and generally happens when the player is at a much higher speed.
The fastest speed that my player can go at is 9 spaces per 0.5seconds, and the slowest being 1 space per 1.5second. The speed is calculated using an input algorithm
So the basic problem is, the player just ignores the bonus object once in a while, generally when at a faster speed.
Do raycast checks have a delay in them? Is there a way to fix this?