Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    IGravitySensor Interface

    Namespace: Stride.Input
    Assembly: Stride.Input.dll

    This class represents a sensor of type Gravity. It measures the gravity force applying on the device.

    public interface IGravitySensor : ISensorDevice, IInputDevice
    Name Description
    Properties
    Vector

    Gets the current gravity applied on the device (in meters/seconds^2).

    | Improve this Doc View Source

    Properties


    Vector

    Gets the current gravity applied on the device (in meters/seconds^2).

    Vector3 Vector { get; }
    Property Value
    Type Description
    Vector3

    Inherited Members

    ISensorDevice.IsEnabled
    IInputDevice.Name
    IInputDevice.Id
    IInputDevice.Priority
    IInputDevice.Source
    IInputDevice.Update(List<InputEvent>)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation