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
ScriptedMovement.cs
1using System.Numerics;
2
4
10public struct ScriptedMovement
11{
18
24 public Vector2 Origin;
25
31 public Vector2 Target;
32
38 public float DurationSec;
39
45 public float ElapsedSec;
46
52 public float SpeedPerSec;
53
60 public float SnapEpsilon;
61
68 public Func<float, float>? Easing;
69}
MovementScriptType
Defines the type of scripted movement behavior applied to an object. Movement scripts control how an ...
Represents the state and parameters of a scripted movement operation applied to an object....
float DurationSec
The total duration of the movement in seconds. Only used by MovementScriptType.TweenTo to determine t...
Vector2 Target
The target position or destination for the movement. For MovementScriptType.TweenTo,...
float SpeedPerSec
The movement speed in units per second. Only used by MovementScriptType.Toward for continuous directi...
MovementScriptType Type
The type of movement script currently active. Determines which fields are relevant and how the moveme...
float ElapsedSec
The elapsed time in seconds since the movement script started. Only used by MovementScriptType....
float SnapEpsilon
The distance threshold for snapping to the target position. When the object is within this epsilon di...
Func< float, float >? Easing
Optional easing function applied to the normalized time value during interpolation....
Vector2 Origin
The starting position captured when the movement script was initiated. Used primarily by MovementScri...