Assambra / Free-MMORPG

MIT License
12 stars 5 forks source link

The camera offset changes when you run up or down the terrain #55

Closed Assambra closed 10 months ago

Assambra commented 10 months ago

We use a function that automatically shifts the camera offset when character sizes change. Originally only intended for character creation or when the character size changes. But umaRenderer.bounds.max.y doesn't seem to be a good inticator for this, even if you raise the if (currentHeight > lastHeight + 0.01f || currentHeight < lastHeight - 0.01f) the values ​​to 1 which corresponds to the value 1 meter. especially when running up and down hills.