JavaScript Application Programming Interface (API) for AutoCAD
ContentsIndexHome
PreviousUpNext
Acad.Editor.CurrentViewport.dolly Function

Autodesk.AutoCAD.js

JavaScript
function Acad.Editor.CurrentViewport.dolly(dollyVector,animate );
Parameters 
Description 
dollyVector 
Input camera space dolly vector of type Acad.Vector3d 
animate 
Animate is Boolean 

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, and
  • X is the cross product of those two vectors.
Links
Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!