MeshCameraWorld

Description

sealed class Tinman.Engine.Components.MeshCameraWorld

A ICameraWorld implementation that uses a terrain mesh.

This class aggregates the following objects:

Public / Constructors

Mesh​Camera​World


public constructor MeshCameraWorld → (2)

minimumDistance opt : float64 = 0

[>=0]
The minimum distance to keep to the terrain surface, see MinimumDistance.

maximumDistance opt : float64 = 1

[>0]
The maximum distance factor, see ICameraWorld.MaximumDistance

Creates a new instance of MeshCameraWorld.

Public / Attributes

Maximum​Distance


public attribute MaximumDistance → (get,set)

value : float64

[>0]
The maximum distance factor, see remarks.

Specifies the maximum camera distance.

The default maximum camera distance is computed so that the bounding sphere fits into the smaller field-of-view angle (horizontal or vertical). This factor specifies a multiple for that: a value of 0.5 will fit half of the bounding sphere, a value of 2 will fit two bounding spheres. Defaults to 1.

Minimum​Distance


public attribute MinimumDistance → (get,set)

value : float64

[>=0]
The minimum distance to the terrain.

The minimum distance to keep to the terrain surface.

Defaults to 0.