XII Release 0.1.0
Loading...
Searching...
No Matches
xiiScriptCoroutine_MoveTo Class Reference

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <ScriptCoroutine_MoveTo.h>

Inheritance diagram for xiiScriptCoroutine_MoveTo:
[legend]

Public Member Functions

void Start (xiiGameObjectHandle hObject, const xiiVec3 &vTargetPos, xiiTime duration, xiiEnum< xiiEasingFunction > easing)
 Initiates the move operation to the specified target position.
virtual Result Update (xiiTime deltaTimeSinceLastUpdate) override
Public Member Functions inherited from xiiScriptCoroutine
xiiScriptCoroutineHandle GetHandle ()
xiiStringView GetName () const
xiiScriptInstance * GetScriptInstance ()
const xiiScriptInstance * GetScriptInstance () const
xiiScriptWorldModule * GetScriptWorldModule ()
const xiiScriptWorldModule * GetScriptWorldModule () const
virtual void Stop ()
void UpdateAndSchedule (xiiTime deltaTimeSinceLastUpdate=xiiTime::MakeZero())

Detailed Description

Copyright (c) Theophilus Eriata. All Rights Reserved.

Script coroutine that smoothly moves a game object to a target position over time.

Provides interpolated movement with configurable easing curves for animation effects. The object's position is updated each frame until the target is reached or the duration expires.

Member Function Documentation

◆ Update()

xiiScriptCoroutine::Result xiiScriptCoroutine_MoveTo::Update ( xiiTime deltaTimeSinceLastUpdate)
overridevirtual

Implements xiiScriptCoroutine.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Core/Scripting/ScriptClasses/ScriptCoroutine_MoveTo.h
  • /home/runner/work/XII/XII/Source/Engine/Core/Scripting/ScriptClasses/Implementation/ScriptCoroutine_MoveTo.cpp