Click or drag to resize
AB4D logo

FirstPersonCamera Methods

The FirstPersonCamera type exposes the following members.

Methods
 NameDescription
Protected methodBaseCreateFrom This method is called from CreateFrom method and actually sets the properties on this camera.
(Overrides SphericalCameraBaseCreateFrom(Camera))
Public methodIsValid Gets a Boolean that specifies if the camera is valid (has TargetViewport3D that has a valid size; has valid values for all properties). When camera is valid the Point3DTo2D(Point3D) returns correct value; when the camera is not valid, the Point3DTo2D method cannot calculate the 2D screen position.
(Overrides SphericalCameraIsValid(Boolean))
Public methodMoveBackward Moves the camera backward (in the opposite as look direction)
Public methodMoveCamera Moves the camera for the moveVector (regardless of the current camera's LookDirection and UpDirection)
Public methodMoveDown Moves the camera down (in the opposite up direction)
Public methodMoveForward Moves the camera forward (in the look direction)
Public methodMoveLeft Moves the camera left (strafe)
Public methodMoveRight Moves the camera right (strafe)
Public methodMoveUp Moves the camera up (in the up direction)
Protected methodStrafeCamera StrafeCamera moves the camera based on the current camera's LookDirection and UpDirection.
Public methodTurnTo(Point3D) Turns the camera to the direction of the specified position
Public methodTurnTo(Vector3D) Turns the camera to the specified direction
Public methodTurnTo(Point3D, Double, FuncDouble, Double) Turns the camera to the direction of the specified position
Public methodTurnTo(Vector3D, Double, FuncDouble, Double) Turns the camera to the specified direction
Protected methodUpdateCamera Updates the PerspectiveCamera
(Overrides SphericalCameraUpdateCamera(ProjectionCamera))
Top
See Also