Builder

class Builder

Builder for Manipulator instances.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(mode: Mode): Manipulator

Creates a new camera manipulator in mode. The builder can't be used afterwards.

Link copied to clipboard

The distance to the far plane for Mode.MAP.

Link copied to clipboard

Maximum camera speed in world units per second for Mode.FREE_FLIGHT; defaults to 10.

Link copied to clipboard

Applies a deceleration to camera movement in Mode.FREE_FLIGHT; defaults to 0 (no damping). Lower values give slower damping times. A good default is 15. Too high a value may lead to instability.

Link copied to clipboard

Multiplied with viewport delta for panning in Mode.FREE_FLIGHT; defaults to (0.01, 0.01).

Link copied to clipboard

Number of speed steps adjustable with the scroll wheel in Mode.FREE_FLIGHT; defaults to 80.

Link copied to clipboard

Initial pitch and yaw orientation in radians for Mode.FREE_FLIGHT; defaults to (0, 0).

Link copied to clipboard

Initial eye position in world space for Mode.FREE_FLIGHT; defaults to (0, 0, 0).

Link copied to clipboard

The full field of view in degrees (not half-angle) for Mode.MAP.

Link copied to clipboard

The axis held constant when the viewport changes in Mode.MAP.

Link copied to clipboard

Plane equation (ax + by + cz + d = 0) used as a raycast fallback for grab-and-pan.

Link copied to clipboard
fun mapExtent(worldWidth: Float, worldHeight: Float): Manipulator.Builder

The ground size for computing the home position in Mode.MAP.

Link copied to clipboard

Constrains the zoom-in level in Mode.MAP.

Link copied to clipboard

Initial eye position in world space for Mode.ORBIT; defaults to (0, 0, 1).

Link copied to clipboard

Multiplied with viewport delta for Mode.ORBIT; defaults to 0.01.

Link copied to clipboard

Sets whether panning is enabled.

Link copied to clipboard

World-space position of interest; defaults to (0, 0, 0).

Link copied to clipboard

Orientation for the home position; defaults to (0, 1, 0).

Link copied to clipboard
fun viewport(width: Int, height: Int): Manipulator.Builder

Width and height of the viewing area.

Link copied to clipboard

Multiplied with scroll delta; defaults to 0.01.