载入中...
搜索中...
未找到
FollowPlayer.cpp
浏览该文件的文档.
12Result<void> evaluateFollowPlayer(FollowPlayerOutput* output, const FollowPlayerSettings* settings,
14 if (!output || !settings || !input || !finite(settings->offsetX) || !finite(settings->offsetY) ||
16 !finite(settings->scaleZ) || !finite(input->playerX) || !finite(input->playerY) || !finite(input->playerZ))
18 DiagnosticCode::InvalidArgument, "scene.followPlayer: objects and finite transform values required"));
49 auto settings = table.addClass("FollowPlayerSettings", ssq::Class::Ctor<FollowPlayerSettings()>());
78 [vm = table.getHandle()](FollowPlayerOutput* out, FollowPlayerSettings* cfg, FollowPlayerInput* in) {
The single Squirrel projection for common Result, Status and Value.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Definition AvatarInstance.h:34
Result< void > evaluateFollowPlayer(FollowPlayerOutput *output, const FollowPlayerSettings *settings, const FollowPlayerInput *input)
Evaluate Pcg FollowPlayerSystem LateUpdate transform semantics.
Definition FollowPlayer.cpp:12
void exposeFollowPlayerBindings(ssq::Table &table)
Register FollowPlayer value types and evaluator with the root script table.
Definition FollowPlayer.cpp:48
@ InvalidArgument
Per-frame player observation supplied by the application.
Definition FollowPlayer.h:28
Provider-neutral transform writes produced for every followed object.
Definition FollowPlayer.h:36
Pcg FollowPlayerSystem configuration independent of render providers.
Definition FollowPlayer.h:14