Search Results for

    Show / Hide Table of Contents

    Class FreeCamera3D

    Behavior that allows a 3D camera to move freely.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    Behavior
    FreeCamera3D
    Implements
    IDependencyObject
    Inherited Members
    Behavior.Family
    Behavior.UpdateOrder
    Behavior.OnAttached()
    Behavior.OnDetach()
    Component.Owner
    Component.Managers
    Component.ShouldBeActivated
    Component.Clone()
    Component.Attach(Entity)
    Component.OnLoaded()
    Component.OnActivated()
    Component.Start()
    Component.OnDeactivated()
    Component.OnDestroy()
    PrefabInstanceObject.PrefabSource
    PrefabInstanceObject.RefreshPrefab(Prefab)
    PrefabInstanceObject.PrefabElementId
    PrefabInstanceObject.IsPrefabInstance
    PrefabInstanceObject.IsMissingPrefabSource
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    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.

    Overrides
    Behavior.Update(TimeSpan)
    Remarks

    This method will not be executed if the Component or the Entity owning it is not Active.

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX