Scene/runtime composition entry point for generated colliders in a shared World3D. 更多...
#include <ScenePhysics.h>
Public 成员函数 | |
| Module_REG (ScenePhysics) | |
| eve::Result< void > | bindGeneratedColliders (eve::physics::World3D &world) |
| Route future generated collider publications into a caller-owned gameplay world. @ownership The caller owns world; this module retains only its stale-safe identity and a provider binding. @lifetime The provider owns the binding. Unbind before destroying a non-empty publication set; world destruction makes records observably stale. @thread Owner-thread only; do not race publication or simulation stepping. | |
| eve::Result< void > | unbindGeneratedColliders () |
| Remove the current empty shared-world binding. | |
| eve::physics::PhysicsWorldHandle | boundWorld () const noexcept |
| Current bound world identity, or invalid when unbound/stale. | |
Public 成员函数 继承自 eve::Module | |
| virtual | ~Module () |
| Module. | |
| virtual std::string | getName () const =0 |
| Returns the name. | |
详细描述
Scene/runtime composition entry point for generated colliders in a shared World3D.
在文件 ScenePhysics.h 第 16 行定义.
成员函数说明
◆ bindGeneratedColliders()
| eve::Result< void > eve::scene_physics::ScenePhysics::bindGeneratedColliders | ( | eve::physics::World3D & | world | ) |
Route future generated collider publications into a caller-owned gameplay world. @ownership The caller owns world; this module retains only its stale-safe identity and a provider binding. @lifetime The provider owns the binding. Unbind before destroying a non-empty publication set; world destruction makes records observably stale. @thread Owner-thread only; do not race publication or simulation stepping.
在文件 ScenePhysics.cpp 第 14 行定义.
引用了 eve::physics::PhysicsArtifactProvider::bindWorld(), eve::Result< T >::failure(), eve::physics::physicsArtifactProvider() , 以及 world.
◆ boundWorld()
|
noexcept |
Current bound world identity, or invalid when unbound/stale.
在文件 ScenePhysics.cpp 第 29 行定义.
引用了 eve::physics::PhysicsArtifactProvider::boundWorld() , 以及 eve::physics::physicsArtifactProvider().
◆ Module_REG()
| eve::scene_physics::ScenePhysics::Module_REG | ( | ScenePhysics | ) |
◆ unbindGeneratedColliders()
| eve::Result< void > eve::scene_physics::ScenePhysics::unbindGeneratedColliders | ( | ) |
Remove the current empty shared-world binding.
在文件 ScenePhysics.cpp 第 20 行定义.
引用了 eve::physics::PhysicsArtifactProvider::boundWorld(), eve::Result< T >::failure(), eve::NoOp, eve::physics::physicsArtifactProvider(), eve::Status::success(), eve::Result< T >::success() , 以及 eve::physics::PhysicsArtifactProvider::unbindWorld().
该类的文档由以下文件生成:
- src/modules/scene/physics/ScenePhysics.h
- src/modules/scene/physics/ScenePhysics.cpp
Public 成员函数 继承自