I’m building a architecture visualisation application and I want to give the user the ability to navigate in first person camera when needed but toggle to top down floor plan view. But when clicked on a point in the floor plan toggle back to first person view. The closest I have to implementing this is this First Person Movement | Learn PlayCanvas
Can this be done? Any examples out there that might help guide me ?
Collision would be great, but I heard it’s hard to do between custom 3D model and a first person camera, so I’m setting to just WASD and mouse control on flying camera.
I was primarily hoping to get an example of switching camera views based on user input.
So I think a script triggering camera view switch ? So yes the transition. I think i can use something like this for it (https://developer.playcanvas.com/en/tutorials/ui-elements-buttons/) with a menu option.
But once i get that transition working, I’d like the camera transition at a point in the model where the user clicks. I’m not quite sure how to achieve that, but should be possible with scripting ?
If you need a transition (eg the camera moving from top down view to ‘first person’ where the user clicks), doing a tween or lerp between the two points and allowing the user to control the camera after the transition has finished we need bespoke code and you won’t find an example that’s exactly right for you.