Class ArcFollowCamera
Hierarchy
-
TargetCamera
- ArcFollowCamera
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Instantiates a new ArcFollowCamera
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
The longitudinal angle of the camera
betaSearch playground for beta
The latitudinal angle of the camera
camera DirectionSearch playground for cameraDirection
Define the current direction the camera is moving to
camera RotationSearch playground for cameraRotation
Define the current rotation the camera is rotating to
ignore Parent ScalingSearch playground for ignoreParentScaling
Gets or sets a boolean indicating that the scaling of the parent hierarchy will not be taken in account by the camera
inverse Rotation SpeedSearch playground for inverseRotationSpeed
Speed multiplier for inverse camera panning
invert RotationSearch playground for invertRotation
Reverses mouselook direction to 'natural' panning as opposed to traditional direct panning
locked TargetSearch playground for lockedTarget
Define the current target of the camera as an object or a position.
no Rotation ConstraintSearch playground for noRotationConstraint
Add constraint to the camera to prevent it to move freely in all directions and around all axis.
radiusSearch playground for radius
The radius of the camera from its target
rotationSearch playground for rotation
Define the current rotation of the camera
rotation QuaternionSearch playground for rotationQuaternion
Define the current rotation of the camera as a quaternion to prevent Gimbal lock
speedSearch playground for speed
Define the current speed of the camera
update UpVector From RotationSearch playground for updateUpVectorFromRotation
When set, the up vector of the camera will be updated by the rotation of the camera
Accessors
target
Methods
get Class NameSearch playground for getClassName
-
Returns the class name of the object. It is mostly used internally for serialization purposes.
Returns string
get Front PositionSearch playground for getFrontPosition
-
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
-
get TargetSearch playground for getTarget
-
Return the current target position of the camera. This value is expressed in local space.
Returns Vector3
the target position
set TargetSearch 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
-
store StateSearch playground for storeState
-
Store current camera state of the camera (fov, position, rotation, etc..)
Returns Camera
the camera
Arc Rotate version of the follow camera. It still follows a Defined mesh but in an Arc Rotate Camera fashion.
https://doc.babylonjs.com/features/cameras#follow-camera