Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
Gondwana.Physics.Movement.IMovable Interface Reference

Defines an object that can be moved within a specific coordinate space. More...

Inheritance diagram for Gondwana.Physics.Movement.IMovable:
Gondwana.Drawing.Direct.IDirectCompositeChild Gondwana.Physics.Movement.IMovableOnSceneLayer Gondwana.Drawing.Direct.DirectComposite Gondwana.Drawing.Direct.DirectDrawingMovableBase Gondwana.Drawing.Sprites.CompositeSprite Gondwana.Widgets.WidgetBase Gondwana.Drawing.Direct.DirectImage Gondwana.Drawing.Direct.DirectRectangle Gondwana.Drawing.Direct.DirectSvg Gondwana.Drawing.Direct.DirectVideo Gondwana.Drawing.Direct.ImageLayer.ImageInstanceLayer Gondwana.Drawing.Direct.Particles.ParticleSurface Gondwana.Drawing.Direct.TextBlock

Public Member Functions

Vector2 GetPosition ()
 Get the current position in the mover's PositionSpace.
void SetPosition (Vector2 pos)
 Set the position in the mover's PositionSpace.

Properties

MovementSpace PositionSpace [get]
 Which unit system this mover uses for its position.

Detailed Description

Defines an object that can be moved within a specific coordinate space.

The IMovable interface provides methods to retrieve and update the position of an object in a defined MovementSpace. Implementations of this interface are expected to handle position-related operations consistently within the specified coordinate system.

Definition at line 11 of file IMovable.cs.

Member Function Documentation

◆ GetPosition()

Vector2 Gondwana.Physics.Movement.IMovable.GetPosition ( )

Get the current position in the mover's PositionSpace.

Returns
The sprite position in scene-layer grid coordinates.

Implemented in Gondwana.Drawing.Direct.DirectComposite, Gondwana.Drawing.Direct.DirectDrawingMovableBase, and Gondwana.Drawing.Sprites.CompositeSprite.

◆ SetPosition()

void Gondwana.Physics.Movement.IMovable.SetPosition ( Vector2 pos)

Set the position in the mover's PositionSpace.

Parameters
posThe new position in scene-layer grid coordinates.

Implemented in Gondwana.Drawing.Direct.DirectComposite, Gondwana.Drawing.Direct.DirectDrawingMovableBase, and Gondwana.Drawing.Sprites.CompositeSprite.

Property Documentation

◆ PositionSpace

MovementSpace Gondwana.Physics.Movement.IMovable.PositionSpace
get

Which unit system this mover uses for its position.

Implemented in Gondwana.Drawing.Direct.DirectComposite, Gondwana.Drawing.Direct.DirectDrawingMovableBase, and Gondwana.Drawing.Sprites.CompositeSprite.

Definition at line 14 of file IMovable.cs.