Interface IWorldPositionComponent
Allows getting the world position for entities.
Inherited Members
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IWorldPositionComponent : IComponent, IDisposable, INotifyPropertyChanged
Properties
| Improve this Doc View SourceWorldX
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. |
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. |
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. |