Class FreeCamera3D
Behavior that allows a 3D camera to move freely.
Inheritance
FreeCamera3D
Implements
Inherited Members
Namespace: Evergine.Components.Cameras
Assembly: Evergine.Components.dll
Syntax
public class FreeCamera3D : Behavior, IDependencyObject
Constructors
FreeCamera3D()
Initializes a new instance of the FreeCamera3D class.
Declaration
public FreeCamera3D()
Fields
graphicsPresenter
The Camera3D Graphics Presenter.
Declaration
[BindService(true)]
protected GraphicsPresenter graphicsPresenter
Field Value
Type | Description |
---|---|
GraphicsPresenter |
Properties
MaxPitch
Gets or sets the maximum pitch angle.
Declaration
public float MaxPitch { get; set; }
Property Value
Type | Description |
---|---|
float |
MouseSensitivity
Gets or sets the mouse sensitivity.
Declaration
public float MouseSensitivity { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
0.5 is to stop, 1 is for raw delta, 2 is twice the delta.
MoveSpeed
Gets or sets the movement speed of the camera.
Declaration
public float MoveSpeed { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationSpeed
Gets or sets the rotation speed of the camera.
Declaration
public float RotationSpeed { get; set; }
Property Value
Type | Description |
---|---|
float |
TouchMoveAndOrientationRatio
Gets or sets the Move/Orientation screen ratio.
Declaration
public float TouchMoveAndOrientationRatio { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
0.5f sets the same area to move and orientation actions. 0.1f sets 10% of the screen to move action and 90% to orientation area.
TouchSensitivity
Gets or sets the touch sensitivity.
Declaration
public float TouchSensitivity { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
0.5 is for stop, 1 is for raw delta, 2 is for twice delta.
Methods
Update(TimeSpan)
Allows this instance to execute custom logic during its Update
.
Declaration
protected override void Update(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The game time. |