ScriptaGames / zorbio

A 3D multiplayer WebGL game
MIT License
8 stars 1 forks source link

new wobble in center with latest cursor change #535

Closed Jared-Sprague closed 6 years ago

Jared-Sprague commented 6 years ago

I think the latest cursor commit d9208347971a822b2d331ab7632e708387add54b added a weird wobble when in the center of the screen:

peek 2017-11-25 00-33

The original commit didn't have this problem.

mwcz commented 6 years ago

Oh interesting! I can't tell what's happening in the gif but as soon as I tried it it was really noticeable. I guess I never put my cursor in the dead center!

Figured out what was going on and fixed it. The origin point on the image that was being rotated around was wrong. You can see the difference easily here:

Centered cursor wobble with real cursor for reference cursor-center-wobble

Centered cursor wobble fixed, rotating around correct point cursor-center-working