Skip to main content
gamedev.net
🔒 Locked

Rectangle-based Collision Problem

Started by MSigma 0 replies 350+ views
Original Post
MSigma
MSigma
Hiya, we've got a problem with our rectangle-based collision system. The player will randomly stop one pixel before the ground. We really can't figure out what the cause is.
We've got the two related C# functions pasted here. It should be enough for someone more experienced to figure it out.
(moveRect is the player and staticRect is the ground we're checking against)

We appreciate any and all help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.