Generation-qualified relationship between a World3D and one joint. 更多...
#include <PhysicsLink.h>
Public 成员函数 | |
| bool | isValid () const noexcept |
| Whether both encoded handle values are non-invalid. | |
| eve::Result< Joint3D * > | resolve (World3D &world) const |
| Resolves a live joint or returns StaleHandle. | |
静态 Public 成员函数 | |
| static eve::Result< PhysicsJointLink > | attach (PhysicsWorldHandle world, PhysicsJointHandle joint) |
| Constructs a joint link candidate; ownership is checked by resolve(). | |
| static eve::Result< PhysicsJointLink > | fromJoint (const Joint3D &joint) |
| Creates a link from a live joint. | |
Public 属性 | |
| PhysicsWorldHandle | world = PhysicsWorldHandle::invalid() |
| PhysicsJointHandle | joint = PhysicsJointHandle::invalid() |
详细描述
Generation-qualified relationship between a World3D and one joint.
Joint links are invalidated before either attached body or the world is destroyed, so both destruction orders resolve as StaleHandle.
在文件 PhysicsLink.h 第 93 行定义.
成员函数说明
◆ attach()
|
static |
Constructs a joint link candidate; ownership is checked by resolve().
在文件 PhysicsLink.cpp 第 98 行定义.
被这些函数引用 fromJoint().
◆ fromJoint()
|
static |
Creates a link from a live joint.
在文件 PhysicsLink.cpp 第 103 行定义.
引用了 attach(), eve::Result< T >::failure(), eve::RuntimeHandle< Tag >::isValid(), joint , 以及 world.
◆ isValid()
|
inlinenoexcept |
Whether both encoded handle values are non-invalid.
在文件 PhysicsLink.h 第 98 行定义.
引用了 eve::RuntimeHandle< Tag >::isValid(), joint , 以及 world.
被这些函数引用 resolve().
◆ resolve()
| eve::Result< Joint3D * > eve::physics::PhysicsJointLink::resolve | ( | World3D & | world | ) | const |
Resolves a live joint or returns StaleHandle.
在文件 PhysicsLink.cpp 第 110 行定义.
引用了 eve::Result< T >::failure(), isValid(), joint, eve::Result< T >::success() , 以及 world.
类成员变量说明
◆ joint
| PhysicsJointHandle eve::physics::PhysicsJointLink::joint = PhysicsJointHandle::invalid() |
在文件 PhysicsLink.h 第 95 行定义.
被这些函数引用 attach(), fromJoint(), isValid() , 以及 resolve().
◆ world
| PhysicsWorldHandle eve::physics::PhysicsJointLink::world = PhysicsWorldHandle::invalid() |
在文件 PhysicsLink.h 第 94 行定义.
被这些函数引用 attach(), fromJoint(), isValid() , 以及 resolve().
该结构体的文档由以下文件生成:
- src/modules/physics/PhysicsLink.h
- src/modules/physics/PhysicsLink.cpp