FirstPersonControls

THREE.FirstPersonControls
class FirstPersonControls(camera: Camera, domElement: UndefOr[Element]) extends Object

This class is an alternative implementation of [[FlyControls]].

Attributes

Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def dispose(): Unit

Dispose of the controls.

Dispose of the controls.

Attributes

def handleResize(): Unit

Must be called if the application window is resized.

Must be called if the application window is resized.

Attributes

def lookAt(x: Double | Vector3, y: UndefOr[Double], z: UndefOr[Double]): FirstPersonControls

Rotates the camera towards the defined target position.

Rotates the camera towards the defined target position.

Attributes

def update(delta: Double): Unit

Update the controls. Call this method every frame.

Update the controls. Call this method every frame.

Attributes

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var activeLook: Boolean

Whether it's possible to look around or not.

Whether it's possible to look around or not.

Attributes

var autoForward: Boolean

Whether the camera is automatically moved forward or not.

Whether the camera is automatically moved forward or not.

Attributes

var constrainVertical: Boolean

Whether or not looking around is vertically constrained by verticalMin and verticalMax.

Whether or not looking around is vertically constrained by verticalMin and verticalMax.

Attributes

var heightCoef: Double

Determines how much faster the camera moves when it's y-component is near heightMax.

Determines how much faster the camera moves when it's y-component is near heightMax.

Attributes

var heightMax: Double

Upper camera height limit used for movement speed adjustment.

Upper camera height limit used for movement speed adjustment.

Attributes

var heightMin: Double

Lower camera height limit used for movement speed adjustment.

Lower camera height limit used for movement speed adjustment.

Attributes

var heightSpeed: Boolean

Whether or not the camera's height influences the forward movement speed. Use the properties heightCoef, heightMin and heightMax for configuration.

Whether or not the camera's height influences the forward movement speed. Use the properties heightCoef, heightMin and heightMax for configuration.

Attributes

var lookSpeed: Double

The look around speed.

The look around speed.

Attributes

var lookVertical: Boolean

Whether it's possible to vertically look around or not.

Whether it's possible to vertically look around or not.

Attributes

val mouseDragOn: Boolean

Whether the mouse is pressed down or not.

Whether the mouse is pressed down or not.

Attributes

var movementSpeed: Double

The movement speed.

The movement speed.

Attributes

var verticalMax: Double

How far you can vertically look around, upper limit. Range is 0 to Math.PI in radians.

How far you can vertically look around, upper limit. Range is 0 to Math.PI in radians.

Attributes

var verticalMin: Double

How far you can vertically look around, lower limit. Range is 0 to Math.PI in radians.

How far you can vertically look around, lower limit. Range is 0 to Math.PI in radians.

Attributes