载入中...
搜索中...
未找到
World.h
浏览该文件的文档.
117 eve::Result<void> step(const eve::SimulationStep &step, const SimulationSettings &settings = {});
158 eve::Result<eve::SnapshotEnvelope> snapshot(const eve::SnapshotHashProvider &hashProvider) const;
174 eve::Result<void> restore(const eve::SnapshotEnvelope &snapshot, const eve::SnapshotHashProvider &hashProvider);
211 Joint2D *newDistanceJoint(Body *bodyA, Body *bodyB, float anchorAX, float anchorAY, float anchorBX, float anchorBY,
223 Joint2D *newRevoluteJoint(Body *bodyA, Body *bodyB, float anchorX, float anchorY, bool collideConnected = false);
234 Joint2D *newPrismaticJoint(Body *bodyA, Body *bodyB, float anchorX, float anchorY, float axisX, float axisY,
246 Joint2D *newWeldJoint(Body *bodyA, Body *bodyB, float anchorX, float anchorY, bool collideConnected = false);
257 Joint2D *newWheelJoint(Body *bodyA, Body *bodyB, float anchorX, float anchorY, float axisX, float axisY,
291 Mechanism2D *newShaft(Body *support, Body *rotor, float anchorX, float anchorY, bool collideConnected = false);
313 Mechanism2D *newCrankSlider(Body *frame, Body *crank, Body *rod, Body *slider, float crankAnchorX,
524 const TriggerEvent &triggerEventAt(const std::vector<TriggerEvent> &events, int index, const char *operation) const;
526 [[nodiscard]] eve::Result<void> prepareRuntimeHandleRefresh(std::size_t incomingBodyCount) const;
Vocabulary aliases for nullable and checked borrowed references.
Process-local, generation-qualified handles owned by the physics domain.
Move-only, checked operation results for the common layer.
Backend-neutral, observable fixed-step contract for physics domains.
Versioned, integrity-checked persistence envelopes.
Definition Graphics.h:134
2D rigid body (Box2D) in pixel-space coordinates. Owned by a World; create shapes with newRectangleFi...
Definition Body.h:21
Definition World.cpp:225
2D fixture: a shape attached to a Body with material + filter settings. Also carries a string tag use...
Definition Fixture.h:18
Move-only, single-use collection of validated force requests. @ownership Owns values and handles only...
Definition ForceBatch.h:26
Minimal observable contract for physics simulation providers.
Definition SimulationBackend.h:158
Owning planar joint wrapper observing World-owned backend state. @ownership Caller/VM owns factory wr...
Definition Joint2D.h:58
Composed 2D mechanical assembly owned by a World.
Definition Mechanism2D.h:25
Box2D world wrapper (2D physics) with pixel-space coordinates. Handles stepping, gravity,...
Definition World.h:44
int getEndTriggerCount() const
Sensor/visitor end overlaps collected during the last step.
Definition World.h:383
int getBeginTriggerCount() const
Sensor/visitor begin overlaps collected during the last step (2D parity with World3D).
Definition World.h:377
std::weak_ptr< const void > lifetimeToken() const noexcept
Weak lifetime token for guarded cross-domain world observers.
Definition World.h:137
World(const World &)=delete
eve::PersistentId persistentId() const noexcept
Stable non-nil identity written to snapshot envelopes.
Definition World.h:139
float getRayHitFraction() const
Fraction along the segment [0,1] of the closest hit.
Definition World.h:355
b2World * raw()
Exposes the underlying Box2D world for tightly-scoped backend integration.
Definition World.h:417
bool usedBackendFallback() const noexcept
Whether optional accelerator selection fell back to CPU.
Definition World.h:141
PhysicsWorldHandle runtimeHandle() const noexcept
Process-local identity used by PhysicsLink; invalid after destruction.
Definition World.h:128
World & operator=(const World &)=delete
const b2World * raw() const
Exposes the underlying Box2D world for read-only backend integration.
Definition World.h:426
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
SimulationBackendKind
Kind of implementation that owns a simulation step.
Definition SimulationBackend.h:32
SimulationDeterminism
Determinism guarantee made by a simulation backend.
Definition SimulationBackend.h:64
@ Graphics
std::function< Result< ContentId >(std::string_view canonicalInput)> SnapshotHashProvider
Injected content-digest implementation used by snapshots.
Definition Snapshot.h:36
Definition Container.h:602
Stable outer format shared by persistence and cross-process snapshots.
Definition Snapshot.h:46
Generation-qualified relationship between a World3D and one joint.
Definition PhysicsLink.h:95
Observable backend progress shared by CPU and accelerator providers.
Definition SimulationBackend.h:136
Validated solver policy for one simulation step.
Definition SimulationBackend.h:120
Result of a point probe: deepest non-sensor fixture within radius. Normal points from the shape towar...
Definition World.h:80
Definition World.h:66
Begin/end sensor overlap with an explicit sensor and visitor side. Populated when exactly one fixture...
Definition World.h:59
std::string visitorFixtureTag
Definition World.h:63
std::string sensorFixtureTag
Definition World.h:62