Class: FirstPersonOnGround

FirstPersonOnGround()

FirstPersonOnGround This class provides a first-person view controller that allows the user to navigate

Constructor

new FirstPersonOnGround()

Source:

Classes

FirstPersonOnGround

Methods

activate(lockMode)

This method activates the first-person view controller, enabling keyboard and mouse controls for navigation.
Parameters:
Name Type Default Description
lockMode boolean false If true, enables pointer lock mode for mouse movement.
Source:

deactivate()

This method deactivates the first-person view controller, restoring the default camera controls and removing event listeners.
Source: