ManipulatorTrackball
- class cee.utils.ManipulatorTrackball()
Constructors
Methods
Constructors
- ManipulatorTrackball.constructor()
- Return type:
ManipulatorTrackball
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
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
setRotationAxis
- ManipulatorTrackball.setRotationAxis(rotAxis)
- Arguments:
rotAxis (
Vec3
) – None
The rotation axis used by the trackball manipulator. Set undefined/null to not constrain the rotation to a specific axis.
- Return type:
void
setRotationPoint
- ManipulatorTrackball.setRotationPoint(rotPoint)
- Arguments:
rotPoint (
Vec3
) – None
The rotation point used by the trackball manipulator
- Return type:
void
setRotationSensitivity
- ManipulatorTrackball.setRotationSensitivity(sensitivity)
- Arguments:
sensitivity (
number
) – None
Controls the sensitivity of the rotation operation.
- Return type:
void
setWalkSensitivity
- ManipulatorTrackball.setWalkSensitivity(sensitivity)
- Arguments:
sensitivity (
number
) – None
Controls the sensitivity of the walk operation.
- Return type:
void
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