#include <WorldSnapshotAccess.h>
静态 Public 成员函数 | |
| static Value | shapeContact (const Shape3D &shape) |
| Capture native shape contact state and wrapper-owned collision settings. | |
| static Result< float > | restoreShapeContact (Shape3D &shape, const Value::Object &source) |
| Restore validated candidate contact state; return density for deferred mass preparation. | |
| static Result< void > | finishShapeMass (World3D &world) |
| Preflight candidate mass/inertia arithmetic before applying backend mass updates. | |
| static Result< Value > | captureCouplings3D (const World3D &world) |
| Capture transmissions with stable source ids and current unwrapped phase. | |
| static Result< void > | restoreCouplings3D (World3D &world, const Value::Array &values) |
| Rebuild transmissions after candidate handles and native joints are ready. | |
| static Result< Value > | captureJoints2D (const World &world) |
| Capture owning joint definitions; rejects unregistered backend joints. | |
| static Result< void > | restoreJoints2D (World &candidate, const Value::Array &joints, std::uint32_t firstHandleIndex) |
| Rebuild validated joint definitions inside a detached candidate, allocating fresh runtime handles. | |
| static void | ownPreparedBody (World &world, std::unique_ptr< Body > body) |
| Candidate owns newly reconstructed wrappers so rollback releases all allocations. | |
| static void | ownPreparedFixture (World &world, std::unique_ptr< Fixture > fixture) |
| Candidate owns a fixture wrapper after registering it with its backend. | |
| static void | ownPreparedBody (World3D &world, std::unique_ptr< Body3D > body) |
| Detached 3D candidates own all reconstructed wrappers through commit or rollback. | |
| static void | ownPreparedShape (World3D &world, std::unique_ptr< Shape3D > shape) |
| Transfer one reconstructed shape wrapper to its candidate world. | |
| static void | ownPreparedJoint (World3D &world, std::unique_ptr< Joint3D > joint) |
| Transfer one reconstructed joint wrapper to its candidate world. | |
| static eve::Value | shapeSource (const Shape3D &shape) |
| static void | setBodyId (Body &body, int id) |
| static void | setBodyId (Body3D &body, int id) |
| static void | setShapeId (Shape3D &shape, int id) |
| static void | setJointId (Joint3D &joint, int id) |
| static std::unique_ptr< World3D > | makeDetachedWorld3D (float gx, float gy, float gz, eve::PersistentId instanceId, bool allowSleep) |
| static eve::Result< void > | finishPrepared (World &world, int nextId, const SimulationObservation &observation) |
| static eve::Result< void > | finishPrepared (World3D &world, int nextBodyId, int nextShapeId, int nextJointId, const SimulationObservation &observation) |
| static Result< void > | prepareRuntimeLinks (const World3D &live, World3D &prepared) |
| Allocate fresh 3D links entirely in the detached candidate before publishing topology. | |
| static void | adopt (World &live, World &prepared) |
| static void | adopt (World3D &live, World3D &prepared) |
详细描述
在文件 WorldSnapshotAccess.h 第 31 行定义.
成员函数说明
◆ adopt() [1/2]
|
inlinestatic |
在文件 WorldSnapshotAccess.h 第 154 行定义.
引用了 live.
被这些函数引用 eve::physics::World::restore(), eve::physics::World3D::restore() , 以及 restoreJoints2D().
◆ adopt() [2/2]
|
inlinestatic |
在文件 WorldSnapshotAccess.h 第 155 行定义.
引用了 live.
◆ captureCouplings3D()
|
static |
Capture transmissions with stable source ids and current unwrapped phase.
在文件 Coupling3DSnapshot.cpp 第 34 行定义.
引用了 body, d, eve::Diagnostic::error(), eve::Result< T >::failure(), limits, p, point, source, eve::StaleHandle, eve::Result< T >::success() , 以及 eve::ui::WidgetDesc::value.
被这些函数引用 eve::physics::World3D::snapshot().
◆ captureJoints2D()
Capture owning joint definitions; rejects unregistered backend joints.
在文件 JointSnapshotCodec.cpp 第 67 行定义.
引用了 a, b, eve::physics::Distance, eve::Diagnostic::error(), eve::Result< T >::failure(), first, eve::physics::Gear, limits, eve::physics::Motor, eve::Object, output, eve::physics::Prismatic, eve::physics::Pulley, raw, eve::physics::Revolute, second, source, spring, eve::Result< T >::success(), eve::Unsupported, value, eve::physics::Weld , 以及 eve::physics::Wheel.
被这些函数引用 eve::physics::World::snapshot().
◆ finishPrepared() [1/2]
|
inlinestatic |
◆ finishPrepared() [2/2]
|
inlinestatic |
◆ finishShapeMass()
Preflight candidate mass/inertia arithmetic before applying backend mass updates.
在文件 Shape3DContactSnapshot.cpp 第 168 行定义.
引用了 body, eve::physics::box3d::Access::bodyId(), center, count, finite, inertia , 以及 eve::Result< T >::success().
◆ makeDetachedWorld3D()
|
inlinestatic |
在文件 WorldSnapshotAccess.h 第 117 行定义.
引用了 eve::physics::Box3D , 以及 instanceId.
◆ ownPreparedBody() [1/2]
|
inlinestatic |
Candidate owns newly reconstructed wrappers so rollback releases all allocations.
在文件 WorldSnapshotAccess.h 第 49 行定义.
引用了 body.
被这些函数引用 eve::physics::snapshot_detail::prepareWorld2D() , 以及 eve::physics::snapshot_detail::prepareWorld3D().
◆ ownPreparedBody() [2/2]
|
inlinestatic |
Detached 3D candidates own all reconstructed wrappers through commit or rollback.
在文件 WorldSnapshotAccess.h 第 57 行定义.
引用了 body.
◆ ownPreparedFixture()
|
inlinestatic |
Candidate owns a fixture wrapper after registering it with its backend.
在文件 WorldSnapshotAccess.h 第 53 行定义.
◆ ownPreparedJoint()
|
inlinestatic |
Transfer one reconstructed joint wrapper to its candidate world.
在文件 WorldSnapshotAccess.h 第 65 行定义.
◆ ownPreparedShape()
|
inlinestatic |
Transfer one reconstructed shape wrapper to its candidate world.
在文件 WorldSnapshotAccess.h 第 61 行定义.
引用了 shape.
◆ prepareRuntimeLinks()
|
inlinestatic |
Allocate fresh 3D links entirely in the detached candidate before publishing topology.
在文件 WorldSnapshotAccess.h 第 140 行定义.
引用了 error, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), live , 以及 eve::Result< T >::success().
被这些函数引用 eve::physics::World3D::restore().
◆ restoreCouplings3D()
|
static |
Rebuild transmissions after candidate handles and native joints are ready.
在文件 Coupling3DSnapshot.cpp 第 81 行定义.
引用了 a, b, created, eve::physics::Coupling3D::createGear(), eve::physics::Coupling3D::createPulley(), enabled, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), first, gear, eve::physics::snapshot_detail::hasExactFields(), id, impulse, kind, length, limits, number, ordered, owned, ratio, eve::physics::snapshot_detail::readBool(), eve::physics::snapshot_detail::readFloat(), eve::physics::snapshot_detail::readFloatArray(), eve::physics::snapshot_detail::readInt64(), eve::physics::snapshot_detail::readString(), reference, second, status, eve::Result< T >::success(), value , 以及 values.
被这些函数引用 eve::physics::World3D::restore().
◆ restoreJoints2D()
|
static |
Rebuild validated joint definitions inside a detached candidate, allocating fresh runtime handles.
在文件 JointSnapshotCodec.cpp 第 169 行定义.
引用了 a, adopt(), b, body, d, eve::physics::Distance, eve::Result< T >::failure(), eve::physics::snapshot_detail::field(), first, eve::physics::Gear, eve::Value::getIf(), eve::physics::snapshot_detail::hasExactFields(), id, ids, eve::RuntimeHandle< PhysicsJointHandleTag >::invalidIndex, kind, eve::physics::Motor, eve::Object, owned, p, parameters, eve::physics::Prismatic, eve::physics::Pulley, r, ratio, eve::physics::Joint2D::raw(), raw, eve::physics::snapshot_detail::readBool(), eve::physics::snapshot_detail::readFloat(), eve::physics::snapshot_detail::readInt64(), record, reference, result, eve::physics::Revolute, second, status, eve::Result< T >::success(), value, values, w, eve::physics::Weld , 以及 eve::physics::Wheel.
被这些函数引用 eve::physics::World::restore().
◆ restoreShapeContact()
|
static |
Restore validated candidate contact state; return density for deferred mass preparation.
在文件 Shape3DContactSnapshot.cpp 第 67 行定义.
引用了 category, density, eve::Result< T >::failure(), eve::physics::snapshot_detail::field(), flags, eve::Value::getIf(), group, eve::physics::snapshot_detail::hasExactFields(), index, indices, m, mask, mesh, name, p, eve::physics::snapshot_detail::readBool(), eve::physics::snapshot_detail::readFloat(), eve::physics::snapshot_detail::readFloatArray(), eve::physics::snapshot_detail::readInt64(), eve::physics::snapshot_detail::readUint64(), required, shape, source, tag , 以及 value.
◆ setBodyId() [1/2]
|
inlinestatic |
◆ setBodyId() [2/2]
|
inlinestatic |
在文件 WorldSnapshotAccess.h 第 114 行定义.
◆ setJointId()
|
inlinestatic |
在文件 WorldSnapshotAccess.h 第 116 行定义.
引用了 id.
◆ setShapeId()
|
inlinestatic |
在文件 WorldSnapshotAccess.h 第 115 行定义.
◆ shapeContact()
Capture native shape contact state and wrapper-owned collision settings.
在文件 Shape3DContactSnapshot.cpp 第 41 行定义.
引用了 filter, mesh, shape , 以及 eve::physics::box3d::Access::shapeId().
被这些函数引用 shapeSource().
◆ shapeSource()
|
inlinestatic |
在文件 WorldSnapshotAccess.h 第 68 行定义.
引用了 floats, object, shape, shapeContact(), source, value , 以及 values.
被这些函数引用 eve::physics::snapshot_detail::shapesTopologyValue().
该结构体的文档由以下文件生成:
- src/modules/physics/snapshot/WorldSnapshotAccess.h
- src/modules/physics/snapshot/Coupling3DSnapshot.cpp
- src/modules/physics/snapshot/JointSnapshotCodec.cpp
- src/modules/physics/snapshot/Shape3DContactSnapshot.cpp