H-uru / Plasma

Cyan Worlds's Plasma game engine
http://h-uru.github.io/Plasma/
GNU General Public License v3.0
205 stars 81 forks source link

Fix player jittering when running into walls. #1324

Closed Hoikas closed 1 year ago

Hoikas commented 1 year ago

Sometimes, when running into a solid wall, the player will jitter. The most evident side effect when that happens is lots of small transient contacts being reported. Therefore, don't slide against small collisions. As a bonus, don't make a copy of each contact while we're calculating the sliding normal.