Show / Hide Table of Contents

    Interface IWorldPositionComponent

    Allows getting the world position for entities.

    Inherited Members
    IComponent.Name
    IComponent.Entity
    IComponent.RegistrationType
    IComponent.Init(IEntity, Type)
    IComponent.AfterInit()
    System.IDisposable.Dispose()
    System.ComponentModel.INotifyPropertyChanged.PropertyChanged
    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public interface IWorldPositionComponent : IComponent, IDisposable, INotifyPropertyChanged

    Properties

    | Improve this Doc View Source

    WorldX

    Get the X of an entity in world coordinates. In case the entity has no parents, the value will be the same as X, but if the entity has a parent, then WorldX will give you the absolute world value (as opposed to relative to the parent).

    Declaration
    float WorldX { get; }
    Property Value
    Type Description
    System.Single

    The world x.

    | Improve this Doc View Source

    WorldXY

    Get the (X,Y) of an entity in world coordinates. In case the entity has no parents, the value will be the same as Position, but if the entity has a parent, then WorldXY will give you the absolute world value (as opposed to relative to the parent).

    Declaration
    PointF WorldXY { get; }
    Property Value
    Type Description
    PointF

    The world y.

    | Improve this Doc View Source

    WorldY

    Get the Y of an entity in world coordinates. In case the entity has no parents, the value will be the same as Y, but if the entity has a parent, then WorldY will give you the absolute world value (as opposed to relative to the parent).

    Declaration
    float WorldY { get; }
    Property Value
    Type Description
    System.Single

    The world y.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX