载入中...
搜索中...
未找到
World3DInternal.h
浏览该文件的文档.
40eve::Result<T> ownedQueryFailure(eve::DiagnosticCode code, std::string message, std::string path = {}) {
41 return eve::Result<T>::failure(eve::Diagnostic::error(code, message, path, {}, "physics.query3d"));
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
Box3D rigid-body world. Script coordinates are meters (Box3D native), unlike 2D World which uses pixe...
Definition World3D.h:47
void setQueryIgnoredBodyId(int bodyId)
Ignores one stable Body3D ID in subsequent spatial queries; -1 disables.
Definition World3D.cpp:480
void setQueryFilter(int categoryBits, int maskBits)
Set category/mask bits for subsequent ray, overlap, cast and mover queries.
Definition World3D.cpp:470
void setQueryIgnoredShapeId(int shapeId)
Ignores one stable Shape3D ID in subsequent spatial queries; -1 disables.
Definition World3D.cpp:486
~ScopedQueryState3D() noexcept
Definition World3DInternal.h:25
ScopedQueryState3D(World3D &world, QueryFilter3D filter)
Definition World3DInternal.h:14
eve::Result< T > ownedQueryFailure(eve::DiagnosticCode code, std::string message, std::string path={})
Definition World3DInternal.h:40
T worldValue(eve::Result< T > result)
Definition World3DInternal.h:45
Query filter applied atomically for one owning query operation.
Definition OwnedQuery3D.h:47