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 |
MouseSensibility
Gets or sets the Mouse sensibility.
Declaration
public float MouseSensibility { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
0.5 is for stop, 1 is for raw delta, 2 is twice delta.
MoveSpeed
Gets or sets the move 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 the 10% of the screen to move action and 90% to orientation area.
TouchSensibility
Gets or sets the touch sensibility.
Declaration
public float TouchSensibility { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
0.5 is for stop, 1 is for raw delta, 2 is 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. |