Generation-qualified relationship between a World3D and one shape. 更多...
#include <PhysicsLink.h>
Public 成员函数 | |
| bool | isValid () const noexcept |
| Whether both encoded handle values are non-invalid. | |
| eve::Result< Shape3D * > | resolve (World3D &world) const |
| Resolves a live shape or returns StaleHandle. | |
静态 Public 成员函数 | |
| static eve::Result< PhysicsShapeLink > | attach (PhysicsWorldHandle world, PhysicsShapeHandle shape) |
| Constructs a shape link candidate; ownership is checked by resolve(). | |
| static eve::Result< PhysicsShapeLink > | fromShape (const Shape3D &shape) |
| Creates a link from a live shape. | |
Public 属性 | |
| PhysicsWorldHandle | world = PhysicsWorldHandle::invalid() |
| PhysicsShapeHandle | shape = PhysicsShapeHandle::invalid() |
详细描述
Generation-qualified relationship between a World3D and one shape.
This link is stale when the shape is destroyed or its owning world is gone; it never stores a raw pointer and is not persistent data.
在文件 PhysicsLink.h 第 70 行定义.
成员函数说明
◆ attach()
|
static |
Constructs a shape link candidate; ownership is checked by resolve().
在文件 PhysicsLink.cpp 第 77 行定义.
被这些函数引用 fromShape().
◆ fromShape()
|
static |
Creates a link from a live shape.
在文件 PhysicsLink.cpp 第 82 行定义.
引用了 attach(), body, eve::Result< T >::failure(), eve::RuntimeHandle< Tag >::isValid(), shape , 以及 world.
◆ isValid()
|
inlinenoexcept |
Whether both encoded handle values are non-invalid.
在文件 PhysicsLink.h 第 75 行定义.
引用了 eve::RuntimeHandle< Tag >::isValid(), shape , 以及 world.
被这些函数引用 resolve().
◆ resolve()
| eve::Result< Shape3D * > eve::physics::PhysicsShapeLink::resolve | ( | World3D & | world | ) | const |
Resolves a live shape or returns StaleHandle.
在文件 PhysicsLink.cpp 第 90 行定义.
引用了 eve::Result< T >::failure(), isValid(), shape, eve::Result< T >::success() , 以及 world.
类成员变量说明
◆ shape
| PhysicsShapeHandle eve::physics::PhysicsShapeLink::shape = PhysicsShapeHandle::invalid() |
在文件 PhysicsLink.h 第 72 行定义.
被这些函数引用 attach(), fromShape(), isValid() , 以及 resolve().
◆ world
| PhysicsWorldHandle eve::physics::PhysicsShapeLink::world = PhysicsWorldHandle::invalid() |
在文件 PhysicsLink.h 第 71 行定义.
被这些函数引用 attach(), fromShape(), isValid() , 以及 resolve().
该结构体的文档由以下文件生成:
- src/modules/physics/PhysicsLink.h
- src/modules/physics/PhysicsLink.cpp