PositionAction¶
Inherits: TimedAction
C++ type: PositionAction
Description¶
Animates the position property of its target object, moving it from a start position to an end position over a fixed duration. Works in both 2D and 3D scenes.
Methods¶
| Type | Name | Langs |
|---|---|---|
| void | setAction | C++ | Lua |
Method details¶
setAction¶
- void setAction(Vector3 startPosition, Vector3 endPosition, float duration, bool loop = false)
Configures the tween. startPosition and endPosition are world-space coordinates. duration is in seconds.