pmndrs / ecctrl

🕹️ A floating rigibody character controller
MIT License
467 stars 50 forks source link

Add focus event handler to pause and prevent physics bugs during page changes #17

Closed MikeFernandez-Pro closed 7 months ago

MikeFernandez-Pro commented 7 months ago

Implemented a focus event handler to pause character controller physics, preventing bugs during page change + refactored getMovingDirection() function.

NB: This will only pause the physics related to the character controller and not the overall physics.