This is a camera specifically designed to react to device orientation events such as a modern mobile device being tilted forward or back and left or right.
Sets the input sensibility for a mouse input. (default is 2000.0) Higher values reduce sensitivity.
Enable or disable gravity on the camera.
Define the current direction the camera is moving to
Define the current rotation the camera is rotating to
Enable or disable collisions of the camera with the rest of the scene objects.
Define a collision mask to limit the list of object the camera can collide with
Gets or sets a boolean indicating that pointer input must be disabled on first orientation sensor update (Default: true)
Define the collision ellipsoid of the camera. This is helpful to simulate a camera body like the player body around the camera
Define an offset for the position of the ellipsoid around the camera. This can be helpful to determine the center of the body near the gravity center of the body instead of its head.
Define the input manager associated to the camera.
Gets or Set the list of keyboard keys used to control the backward move of the camera.
Gets or Set the list of keyboard keys used to control the left strafe move of the camera.
Gets or Set the list of keyboard keys used to control the right strafe move of the camera.
Gets or Set the list of keyboard keys used to control the forward move of the camera.
Define the current target of the camera as an object or a position.
Add cconstraint to the camera to prevent it to move freely in all directions and around all axis.
Event raised when the camera collide with a mesh in the scene.
Define the current rotation of the camera
Define the current rotation of the camera as a quaternion to prevent Gimbal lock
Define the current speed of the camera
When set, the up vector of the camera will be updated by the rotation of the camera
Attached controls to the current camera.
Defines the element the controls should be listened from
Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
Detach the current controls from the camera. The camera will stop reacting to inputs.
Defines the element to stop listening the inputs from
Destroy the camera and release the current resources hold by it.
Enabled turning on the y axis when the orientation sensor is active
the factor that controls the turn speed (default: 1/300)
Gets the current instance class name ("DeviceOrientationCamera"). This helps avoiding instanceof at run time.
the class name
Gets the position in front of the camera at a given distance.
The distance from the camera we want the position to be
Return the current target position of the camera. This value is expressed in local space.
the target position
Reset the camera to its default orientation on the specified axis only.
The axis to reset
Defines the target the camera should look at.
Defines the new target as a Vector or a mesh
Store current camera state of the camera (fov, position, rotation, etc..)
Generated using TypeDoc