Hey folks - first time posting here so I apologise if I haven’t posted this correctly.
Essentialliy, I’m trying to get my character to stick within the viewable surface seen through the scene’s isometric camera. I’ve been plugging away at this for the last 2 days with no results.
The camera moves through the scene on a set path, and the player can move around an isometric space within the camera’s view. I can’t seem to figure out how to constrain the player’s movement to the viewable camera space. I’m using a Rigidbody for the player’s movement.
So far I have tried creating a ConstrainMovement method that uses Camera.WorldToViewportPoint in order to grab the outer bounds of the camera, but I haven’t been able to figure it out.
Any help would be hugely appreciated.