I’m creating a custom camera input. To make the camera move, I’m trying to pass a vector to cameraDirection.
However, while there’s no issue when the vector is large, if it falls below a certain threshold (0.0001), the camera stops moving entirely.
Please see the playground for details.
It works correctly if I set the value to 0.0002 or disable checkCollision.
Furthermore, when using Babylon’s native camera input instead of my custom one, it seems to work correctly even when I provide small `camera.speed` (even with checkCollision set to true).
What is the difference between my implementation and Babylon’s implementation?
How can I fix this so that the camera moves even with a small vector and checkCollision enabled?
Thank you for this great framework!