Open hansyulian opened 10 months ago
Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.
Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.
Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!
What is your question:
So I would like to make the camera movement smooth in this example of bounding the camera position to the box:
https://github.com/hansyulian/questions/tree/main/question-2024-01-04-camera-boundary
I figured out the problem is because the camera move before i check the validity of the position and thus after i found out that the camera is moving out of the box, i just throw it back inside the box based on the closest point to the box. this causes the jaggy camera movement which is not nice.
i would like to find is there a way for either:
onBeforeCameraPositionChange(before, after)