载入中...
搜索中...
未找到
eve::physics::WorldSnapshotAccess结构体 参考

#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]

static void eve::physics::WorldSnapshotAccess::adopt ( World &  live,
World &  prepared 
)
inlinestatic

在文件 WorldSnapshotAccess.h 第 154 行定义.

引用了 live.

被这些函数引用 eve::physics::World::restore(), eve::physics::World3D::restore() , 以及 restoreJoints2D().

◆ adopt() [2/2]

static void eve::physics::WorldSnapshotAccess::adopt ( World3D &  live,
World3D &  prepared 
)
inlinestatic

在文件 WorldSnapshotAccess.h 第 155 行定义.

引用了 live.

◆ captureCouplings3D()

Result< Value > eve::physics::WorldSnapshotAccess::captureCouplings3D ( const World3D &  world)
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()

Result< Value > eve::physics::WorldSnapshotAccess::captureJoints2D ( const World &  world)
static

◆ finishPrepared() [1/2]

static eve::Result< void > eve::physics::WorldSnapshotAccess::finishPrepared ( World &  world,
int  nextId,
const SimulationObservation &  observation 
)
inlinestatic

◆ finishPrepared() [2/2]

static eve::Result< void > eve::physics::WorldSnapshotAccess::finishPrepared ( World3D &  world,
int  nextBodyId,
int  nextShapeId,
int  nextJointId,
const SimulationObservation &  observation 
)
inlinestatic

◆ finishShapeMass()

Result< void > eve::physics::WorldSnapshotAccess::finishShapeMass ( World3D &  world)
static

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().

被这些函数引用 eve::physics::snapshot_detail::prepareWorld3D().

◆ makeDetachedWorld3D()

static std::unique_ptr< World3D > eve::physics::WorldSnapshotAccess::makeDetachedWorld3D ( float  gx,
float  gy,
float  gz,
eve::PersistentId  instanceId,
bool  allowSleep 
)
inlinestatic

在文件 WorldSnapshotAccess.h 第 117 行定义.

引用了 eve::physics::Box3D , 以及 instanceId.

被这些函数引用 eve::physics::snapshot_detail::prepareWorld3D().

◆ ownPreparedBody() [1/2]

static void eve::physics::WorldSnapshotAccess::ownPreparedBody ( World &  world,
std::unique_ptr< Body >  body 
)
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]

static void eve::physics::WorldSnapshotAccess::ownPreparedBody ( World3D &  world,
std::unique_ptr< Body3D >  body 
)
inlinestatic

Detached 3D candidates own all reconstructed wrappers through commit or rollback.

在文件 WorldSnapshotAccess.h 第 57 行定义.

引用了 body.

◆ ownPreparedFixture()

static void eve::physics::WorldSnapshotAccess::ownPreparedFixture ( World &  world,
std::unique_ptr< Fixture >  fixture 
)
inlinestatic

Candidate owns a fixture wrapper after registering it with its backend.

在文件 WorldSnapshotAccess.h 第 53 行定义.

被这些函数引用 eve::physics::snapshot_detail::prepareWorld2D().

◆ ownPreparedJoint()

static void eve::physics::WorldSnapshotAccess::ownPreparedJoint ( World3D &  world,
std::unique_ptr< Joint3D >  joint 
)
inlinestatic

Transfer one reconstructed joint wrapper to its candidate world.

在文件 WorldSnapshotAccess.h 第 65 行定义.

被这些函数引用 eve::physics::snapshot_detail::prepareWorld3D().

◆ ownPreparedShape()

static void eve::physics::WorldSnapshotAccess::ownPreparedShape ( World3D &  world,
std::unique_ptr< Shape3D >  shape 
)
inlinestatic

Transfer one reconstructed shape wrapper to its candidate world.

在文件 WorldSnapshotAccess.h 第 61 行定义.

引用了 shape.

被这些函数引用 eve::physics::snapshot_detail::prepareWorld3D().

◆ prepareRuntimeLinks()

static Result< void > eve::physics::WorldSnapshotAccess::prepareRuntimeLinks ( const World3D &  live,
World3D &  prepared 
)
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()

◆ restoreJoints2D()

◆ restoreShapeContact()

◆ setBodyId() [1/2]

static void eve::physics::WorldSnapshotAccess::setBodyId ( Body &  body,
int  id 
)
inlinestatic

在文件 WorldSnapshotAccess.h 第 113 行定义.

引用了 body , 以及 id.

被这些函数引用 eve::physics::snapshot_detail::prepareWorld2D() , 以及 eve::physics::snapshot_detail::prepareWorld3D().

◆ setBodyId() [2/2]

static void eve::physics::WorldSnapshotAccess::setBodyId ( Body3D &  body,
int  id 
)
inlinestatic

在文件 WorldSnapshotAccess.h 第 114 行定义.

引用了 body , 以及 id.

◆ setJointId()

static void eve::physics::WorldSnapshotAccess::setJointId ( Joint3D &  joint,
int  id 
)
inlinestatic

在文件 WorldSnapshotAccess.h 第 116 行定义.

引用了 id.

被这些函数引用 eve::physics::snapshot_detail::prepareWorld3D().

◆ setShapeId()

static void eve::physics::WorldSnapshotAccess::setShapeId ( Shape3D &  shape,
int  id 
)
inlinestatic

在文件 WorldSnapshotAccess.h 第 115 行定义.

引用了 id , 以及 shape.

被这些函数引用 eve::physics::snapshot_detail::prepareWorld3D().

◆ shapeContact()

Value eve::physics::WorldSnapshotAccess::shapeContact ( const Shape3D &  shape)
static

Capture native shape contact state and wrapper-owned collision settings.

在文件 Shape3DContactSnapshot.cpp 第 41 行定义.

引用了 filter, mesh, shape , 以及 eve::physics::box3d::Access::shapeId().

被这些函数引用 shapeSource().

◆ shapeSource()

static eve::Value eve::physics::WorldSnapshotAccess::shapeSource ( const Shape3D &  shape)
inlinestatic

在文件 WorldSnapshotAccess.h 第 68 行定义.

引用了 floats, object, shape, shapeContact(), source, value , 以及 values.

被这些函数引用 eve::physics::snapshot_detail::shapesTopologyValue().


该结构体的文档由以下文件生成: