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

#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
 
xiiScriptInstanceGetScriptInstance ()
 
const xiiScriptInstanceGetScriptInstance () const
 
xiiScriptWorldModuleGetScriptWorldModule ()
 
const xiiScriptWorldModuleGetScriptWorldModule () const
 
virtual void Stop ()
 
void UpdateAndSchedule (xiiTime deltaTimeSinceLastUpdate=xiiTime::MakeZero())
 

Detailed Description

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: