ManipulatorTrackball
-
class
cee.utils.
ManipulatorTrackball
()
Constructors
Methods
Methods
deltaMatrix
-
ManipulatorTrackball.
deltaMatrix
() Returns the relative translation of the view camera since the last updateTrackballCamera() call.
Return type: Mat4
getCamera
-
ManipulatorTrackball.
getCamera
() The camera tracked by the trackball manipulator.
Return type: Camera
setInvertZoomAndWalk
-
ManipulatorTrackball.
setInvertZoomAndWalk
(invert) Arguments: - invert (
boolean
) – None
Invert the zoom and walk direction
Return type: void - invert (
setMinWalkTargetDistance
-
ManipulatorTrackball.
setMinWalkTargetDistance
(distance) Arguments: - distance (
number
) – None
Sets the minimum distance the camera can be from the target point when walking.
Return type: void - distance (
setRotationAxis
-
ManipulatorTrackball.
setRotationAxis
(rotAxis) Arguments: - rotAxis (
Vec3
) – None
The rotation axis used by the trackball manipulator. Set null to not constrain the rotation to a specific axis.
Return type: void - rotAxis (
setRotationPoint
-
ManipulatorTrackball.
setRotationPoint
(rotPoint) Arguments: - rotPoint (
Vec3
) – None
The rotation point used by the trackball manipulator
Return type: void - rotPoint (
setRotationSensitivity
-
ManipulatorTrackball.
setRotationSensitivity
(sensitivity) Arguments: - sensitivity (
number
) – None
Controls the sensitivity of the rotation operation.
Return type: void - sensitivity (
setWalkSensitivity
-
ManipulatorTrackball.
setWalkSensitivity
(sensitivity) Arguments: - sensitivity (
number
) – None
Controls the sensitivity of the walk operation.
Return type: void - sensitivity (
updateTrackballCamera
-
ManipulatorTrackball.
updateTrackballCamera
(viewCamera) Arguments: - viewCamera (
Camera
) – None
Provides the current state of the view camera to the trackball manipulator camera. This is used as a reference position to calculate the relative translation of the view camera.
Return type: void - viewCamera (