载入中...
搜索中...
未找到
VolumeFluidContactTracker.cpp
浏览该文件的文档.
8 return a.colliderLabel < b.colliderLabel || (a.colliderLabel == b.colliderLabel && a.actorGroup < b.actorGroup);
27 std::any_of(contacts.begin(), contacts.end(), [](const auto& contact) { return !finiteContact(contact); }))
28 return Output::failure(Diagnostic::error(DiagnosticCode::InvalidArgument, "Invalid contact event batch",
51 while (current < scratch_.size()) events.push_back({VolumeFluidContactEventType::Enter, scratch_[current++]});
52 while (previous < previous_.size()) events.push_back({VolumeFluidContactEventType::Exit, previous_[previous++]});
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
void reset()
Clears prior keys so the next contacts enter again.
Definition VolumeFluidContactTracker.cpp:57
Result< std::vector< VolumeFluidContactEvent > > advance(std::span< const VolumeFluidContact > contacts, float distanceThreshold=.01f)
Diffs latest contacts against the preceding successful call.
Definition VolumeFluidContactTracker.cpp:22
@ InvalidArgument