Optional physics-owned query session; retains only generation-qualified world/body handles. @ownership Caller owns the session. World destruction or restore invalidates it; rebind after restore/hot reload. @thread Owner simulation thread only. Calls invoke no scripts and hold no locks. 更多...
#include <WorldSphereSweep.h>
Public 成员函数 | |
| virtual | ~IWorldSphereSweep ()=default |
| Destroy a session without destroying its world. | |
| virtual Result< std::vector< WorldSphereContact > > | query (double x, double y, double z, double endX, double endY, double endZ) const =0 |
| Sweep new sphere crossings from start to end; zero-time initial overlaps are excluded. Fail rather than truncate more than 256 shape contacts. @cost One physics broad/narrow-phase query per proposed segment, amortized by simulation substeps. | |
详细描述
Optional physics-owned query session; retains only generation-qualified world/body handles. @ownership Caller owns the session. World destruction or restore invalidates it; rebind after restore/hot reload. @thread Owner simulation thread only. Calls invoke no scripts and hold no locks.
在文件 WorldSphereSweep.h 第 39 行定义.
构造及析构函数说明
◆ ~IWorldSphereSweep()
|
virtualdefault |
Destroy a session without destroying its world.
成员函数说明
◆ query()
|
pure virtual |
Sweep new sphere crossings from start to end; zero-time initial overlaps are excluded. Fail rather than truncate more than 256 shape contacts. @cost One physics broad/narrow-phase query per proposed segment, amortized by simulation substeps.
- 返回
- Owning sorted contacts or a structured failure, including stale world/ignored-body identity.
该类的文档由以下文件生成:
- src/engine/common/WorldSphereSweep.h