I am an experienced programmer but new to Babylonjs, and I am having a hard time finding the proper (best) solution for a FPS type movement.
Basically it is simple. I have a ground and want to drive the camera freely around the ground using the mouse only. No keyboard keys and no mouse buttons.
- Mouse left rotates the camera left
- Mouse right rotates the camera right
- Mouse forward moves the camera forward (in the direction of the cameras rotation)
- Mouse backward moves the camera backwards
The camera will need to be able to detect collisions with meshes.
I’ve tried universalcamera, freecamera, followcamera, and arcrotatecamera - but I can’t get the controls to act like I need.
I suspect I would be best off with FreeCamera, or FollowCamera with a simple invisible mesh.
Any and all help very much appreciated!