Inconsistent Collision

this was the tutorial I followed and I tried to implement what he did on a projectile which didn’t go so well