Schedule unspawned builders onto a shared MotionRuntime timeline. 更多...
#include <MotionSequence.h>
Public 成员函数 | |
| MotionSequence (MotionRuntime &runtime) | |
| Motion sequence. | |
| eve::Result< void > | append (MotionBuilder &&builder) |
| Append. | |
| eve::Result< void > | append (MotionVec2Builder &&builder) |
| Append. | |
| eve::Result< void > | append (MotionVec3Builder &&builder) |
| Append. | |
| eve::Result< void > | join (MotionBuilder &&builder) |
| Join. | |
| eve::Result< void > | join (MotionVec2Builder &&builder) |
| Join. | |
| eve::Result< void > | join (MotionVec3Builder &&builder) |
| Join. | |
| eve::Result< void > | insert (float atSeconds, MotionBuilder &&builder) |
| Inserts . | |
| eve::Result< void > | insert (float atSeconds, MotionVec2Builder &&builder) |
| Inserts . | |
| eve::Result< void > | insert (float atSeconds, MotionVec3Builder &&builder) |
| Inserts . | |
| eve::Result< void > | appendInterval (float seconds) |
| Append interval. | |
| float | cursor () const noexcept |
| Cursor. | |
| float | duration () const noexcept |
| Duration. | |
| int | itemCount () const noexcept |
| Item count. | |
| eve::Result< MotionSequenceHandle > | run () |
| Spawn every scheduled item into the runtime. | |
详细描述
Schedule unspawned builders onto a shared MotionRuntime timeline.
Semantics (LitMotion-aligned):
- Append: start at cursor; cursor advances by item span
- Join: start at last Append's start; cursor = max(cursor, end)
- Insert(t): start at absolute t; cursor = max(cursor, end)
- AppendInterval(dt): cursor += dt
Item span = desc.delay + duration * loops. Infinite loops (-1) are rejected.
@ownership Borrows MotionRuntime; does not spawn until run().
在文件 MotionSequence.h 第 62 行定义.
构造及析构函数说明
◆ MotionSequence()
|
explicit |
Motion sequence.
在文件 MotionSequence.cpp 第 63 行定义.
成员函数说明
◆ append() [1/3]
| eve::Result< void > eve::animation::MotionSequence::append | ( | MotionBuilder && | builder | ) |
◆ append() [2/3]
| eve::Result< void > eve::animation::MotionSequence::append | ( | MotionVec2Builder && | builder | ) |
◆ append() [3/3]
| eve::Result< void > eve::animation::MotionSequence::append | ( | MotionVec3Builder && | builder | ) |
◆ appendInterval()
| eve::Result< void > eve::animation::MotionSequence::appendInterval | ( | float | seconds | ) |
◆ cursor()
|
inlinenoexcept |
Cursor.
在文件 MotionSequence.h 第 92 行定义.
◆ duration()
|
inlinenoexcept |
◆ insert() [1/3]
| eve::Result< void > eve::animation::MotionSequence::insert | ( | float | atSeconds, |
| MotionBuilder && | builder | ||
| ) |
◆ insert() [2/3]
| eve::Result< void > eve::animation::MotionSequence::insert | ( | float | atSeconds, |
| MotionVec2Builder && | builder | ||
| ) |
◆ insert() [3/3]
| eve::Result< void > eve::animation::MotionSequence::insert | ( | float | atSeconds, |
| MotionVec3Builder && | builder | ||
| ) |
◆ itemCount()
|
inlinenoexcept |
Item count.
在文件 MotionSequence.h 第 96 行定义.
◆ join() [1/3]
| eve::Result< void > eve::animation::MotionSequence::join | ( | MotionBuilder && | builder | ) |
◆ join() [2/3]
| eve::Result< void > eve::animation::MotionSequence::join | ( | MotionVec2Builder && | builder | ) |
◆ join() [3/3]
| eve::Result< void > eve::animation::MotionSequence::join | ( | MotionVec3Builder && | builder | ) |
◆ run()
| eve::Result< MotionSequenceHandle > eve::animation::MotionSequence::run | ( | ) |
Spawn every scheduled item into the runtime.
在文件 MotionSequence.cpp 第 263 行定义.
引用了 children, spawned, eve::animation::MotionRuntime::spawnFloat(), eve::animation::MotionRuntime::spawnVec2(), eve::animation::MotionRuntime::spawnVec3() , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/animation/MotionSequence.h
- src/modules/animation/MotionSequence.cpp