Share

Acad.Editor.CurrentViewport.dolly Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.Editor.CurrentViewport.dolly(dollyVector, animate);

Group

ACAD Namespace

Parameters

Parameter Description
dollyVector Input camera space dolly vector of type Acad.Vector3d
animate Animate is boolean

Returns

This function returns a promise pattern result, it has to be called as a Promise Pattern with .then(onSuccess, onError) function.

Description

Use this function to translate the camera target and position by the specified camera space dolly vector. All other camera parameters are left unaffected.

The basis of camera space is as follows:

  • positive Y is along the up vector
  • positive Z is along the eye vector from the camera position to the camera target
  • X is the cross product of those two vectors

Exception

Throws a TypeError or Error object based on the problem encountered.

ACAD Namespace

Was this information helpful?