Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ArcFollowCamera

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

see

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

Hierarchy

Index

Constructors

constructor

  • Instantiates a new ArcFollowCamera

    see

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

    Parameters

    • name: string

      Define the name of the camera

    • alpha: number

      Define the rotation angle of the camera around the logitudinal axis

    • beta: number

      Define the rotation angle of the camera around the elevation axis

    • radius: number

      Define the radius of the camera from its target point

    • target: Nullable<AbstractMesh>

      Define the target of the camera

    • scene: Scene

      Define the scene the camera belongs to

    Returns ArcFollowCamera

Properties

alphaSearch playground for alpha

alpha: number

The longitudinal angle of the camera

betaSearch playground for beta

beta: number

The latitudinal angle of the camera

cameraDirectionSearch playground for cameraDirection

cameraDirection: Vector3

Define the current direction the camera is moving to

cameraRotationSearch playground for cameraRotation

cameraRotation: Vector2

Define the current rotation the camera is rotating to

ignoreParentScalingSearch playground for ignoreParentScaling

ignoreParentScaling: boolean

Gets or sets a boolean indicating that the scaling of the parent hierarchy will not be taken in account by the camera

inverseRotationSpeedSearch playground for inverseRotationSpeed

inverseRotationSpeed: number

Speed multiplier for inverse camera panning

invertRotationSearch playground for invertRotation

invertRotation: boolean

Reverses mouselook direction to 'natural' panning as opposed to traditional direct panning

lockedTargetSearch playground for lockedTarget

lockedTarget: any

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

noRotationConstraintSearch playground for noRotationConstraint

noRotationConstraint: boolean

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

radiusSearch playground for radius

radius: number

The radius of the camera from its target

rotationSearch playground for rotation

rotation: Vector3

Define the current rotation of the camera

rotationQuaternionSearch playground for rotationQuaternion

rotationQuaternion: Quaternion

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

speedSearch playground for speed

speed: number

Define the current speed of the camera

updateUpVectorFromRotationSearch playground for updateUpVectorFromRotation

updateUpVectorFromRotation: boolean

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

Accessors

target

  • Defines the target point of the camera. The camera looks towards it form the radius distance.

    Returns Vector3

  • Defines the target point of the camera. The camera looks towards it form the radius distance.

    Parameters

    Returns any

Methods

getClassNameSearch playground for getClassName

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

    Returns string

getFrontPositionSearch playground for getFrontPosition

  • 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

getTargetSearch playground for getTarget

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

    Returns Vector3

    the target position

setTargetSearch playground for setTarget

  • Defines the target the camera should look at.

    Parameters

    • target: Vector3

      Defines the new target as a Vector or a mesh

    Returns void

storeStateSearch playground for storeState

  • Store current camera state of the camera (fov, position, rotation, etc..)

    Returns Camera

    the camera

Legend

  • Constructor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Static method