ViewerCamera
Index
Constructors
publicconstructor
Parameters
viewer: TwinfinityViewer
Returns ViewerCamera
Properties
publicreadonlyactiveCamera
publicstaticreadonlycameraMinZ
Accessors
publicforwardVector
Returns Vector3
publicmaxZ
Returns number
Parameters
n: number
Returns void
publicminZ
Returns number
Parameters
n: number
Returns void
publicmode
Returns CameraMode
Parameters
v: CameraMode
Returns void
publicoptions
Returns CameraOptions
publicposition
Returns Vector3
Parameters
position: Vector3
Returns void
publicprojection
Returns Projection
Parameters
projection: Projection
Returns void
publictarget
Returns Vector3
Parameters
target: Vector3
Returns void
publictopDownMode
Returns boolean
Parameters
topDownMode: boolean
Returns void
Methods
publicattachBehavior
Parameters
behavior: TwinfinityCameraBehavior
The behavior to be attached to the camera.
Returns boolean
true if the behavior was successfully attached to the camera, otherwise false.
publicclearPivot
Returns void
publicdetachBehavior
Detaches a behavior from the camera.
Parameters
behavior: TwinfinityCameraBehavior
The behavior to be detached from the camera.
Returns boolean
true if the behavior was successfully detached to the camera, otherwise false.
publicpick
Parameters
o: PickOption
Returns PickResult
publicsetPivot
Parameters
mode: PivotMode
optionalpivot: Vector3
Returns void
publiczoomToExtent
Parameters
aabb: BoundingInfo
optionaldirection: CameraDirection
Returns void
Attaches a behavior to the camera.