Click or drag to resize
Ab4d.SharpEngine logo

FreeCamera Methods

The FreeCamera type exposes the following members.

Methods
 NameDescription
Public methodCalculateCurrentUpDirection CalculateCurrentUpDirection calculates the UpDirection from the current values of CameraPosition and TargetPosition.
Public methodStatic memberCalculateUpDirection CalculateUpDirection calculates the up direction from the specified properties.
Public methodFitIntoView(BoundingBox, Boolean, Single, Boolean) FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or ViewWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true) so that the specified BoundingBox will be visible from one edge of the SceneView to another edge.
Public methodFitIntoView(FitIntoViewType, Boolean, Single, Boolean) FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or ViewWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true) so that all the objects on the scene will be visible from one edge of the SceneView to another edge. This is the same as calling FitIntoView and passing Scene.RootNode as parameter.
Public methodFitIntoView(Vector3, Boolean, Single, Boolean) FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or ViewWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true) so that all the specified positions will be visible from one edge of the viewport to another edge.
Public methodFitIntoView(SceneNode, FitIntoViewType, Boolean, Single, Boolean) FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or ViewWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true) so that the specified sceneNode (or all child SceneNodes if sceneNode is GroupNode) will be visible from one edge of the SceneView to another edge.
Public methodGetCameraPosition Returns the current position of the camera.
(Overrides CameraGetCameraPosition)
Public methodGetFitIntoViewDistanceOrViewWidth(SceneNode, FitIntoViewType, Boolean, Vector3) GetFitIntoViewDistanceOrViewWidth returns a Distance (for PerspectiveCamera) or a ViewWidth (for OrthographicCamera) and sets the newTargetPosition that will adjust the camera so that all the specified sceneNodes will be visible from one edge of the viewport to another edge.
Public methodGetFitIntoViewDistanceOrViewWidth(Vector3, FitIntoViewType, Boolean, Vector3) GetFitIntoViewDistanceOrViewWidth returns a Distance (for PerspectiveCamera) or a ViewWidth (for OrthographicCamera) and sets the newTargetPosition that will adjust the camera so that all the specified positions will be visible from one edge of the viewport to another edge.
Public methodGetLookDirection Returns the normalized look direction of the camera.
(Overrides CameraGetLookDirection)
Public methodGetRotatedCamera GetRotatedCamera method calculates rotatedCameraPosition, rotatedTargetPosition and rotatedUpDirection based on the rotating the camera from the initial camera position and direction.
Public methodGetUpDirection Returns the normalized up direction of the camera.
(Overrides CameraGetUpDirection)
Protected methodOnSceneViewChanged OnSceneViewChanged
(Overrides CameraOnSceneViewChanged)
Public methodRotateCamera(Single, Single) Rotates the free camera for the specified heading and attitude. When RotationCenterPosition is set, the camera rotates around RotationCenterPosition which changes the TargetPosition and CameraPosition.
(Overrides CameraRotateCamera(Single, Single))
Public methodRotateCamera(Single, Single, Single) Rotates the free camera for the specified heading, attitude and bank. When RotationCenterPosition is set, the camera rotates around RotationCenterPosition which changes the TargetPosition and CameraPosition.
Public methodUpdate Update method updates the camera matrices when needed (when there were any change in the camera properties) or when forceMatrixUpdate is set to true.
(Overrides CameraUpdate(Boolean))
Top
See Also