ArcFollowCamera

Arc Rotate version of the follow camera. It still follows a Defined mesh but in an Arc Rotate Camera fashion.

see

http://doc.babylonjs.com/features/cameras#follow-camera

Hierarchy

Index

Constructors

constructor

Find examples in Playground

Properties

alpha

Find examples in Playground
alpha: number

The longitudinal angle of the camera

beta

Find examples in Playground
beta: number

The latitudinal angle of the camera

cameraDirection

Find examples in Playground
cameraDirection: Vector3

Define the current direction the camera is moving to

cameraRotation

Find examples in Playground
cameraRotation: Vector2

Define the current rotation the camera is rotating to

lockedTarget

Find examples in Playground
lockedTarget: any

Define the current target of the camera as an object or a position.

noRotationConstraint

Find examples in Playground
noRotationConstraint: boolean

Add constraint to the camera to prevent it to move freely in all directions and around all axis.

radius

Find examples in Playground
radius: number

The radius of the camera from its target

rotation

Find examples in Playground
rotation: Vector3

Define the current rotation of the camera

rotationQuaternion

Find examples in Playground
rotationQuaternion: Quaternion

Define the current rotation of the camera as a quaternion to prevent Gimbal lock

speed

Find examples in Playground
speed: number

Define the current speed of the camera

target

Find examples in Playground

Define the camera target (the messh it should follow)

updateUpVectorFromRotation

Find examples in Playground
updateUpVectorFromRotation: boolean

When set, the up vector of the camera will be updated by the rotation of the camera

Methods

getClassName

Find examples in Playground
  • getClassName(): string
  • Returns the class name of the object. It is mostly used internally for serialization purposes.

    Returns string

getFrontPosition

Find examples in Playground
  • getFrontPosition(distance: number): Vector3
  • Gets the position in front of the camera at a given distance.

    Parameters

    • distance: number

      The distance from the camera we want the position to be

    Returns Vector3

    the position

getTarget

Find examples in Playground
  • Return the current target position of the camera. This value is expressed in local space.

    Returns Vector3

    the target position

setTarget

Find examples in Playground
  • Defines the target the camera should look at.

    Parameters

    • target: Vector3

      Defines the new target as a Vector or a mesh

    Returns void

storeState

Find examples in Playground
  • Store current camera state of the camera (fov, position, rotation, etc..)

    Returns Camera

    the camera

Generated using TypeDoc