载入中...
搜索中...
未找到
PixelWorldPhysicsModule.cpp
浏览该文件的文档.
24 std::function<PixelTerrainCollisionCache*()>([]() -> PixelTerrainCollisionCache* { return nullptr; }), true);
27 if (!self || !physics || !pixels) throw std::runtime_error("terrain sync requires cache and live worlds");
34 if (!self || !physics) throw std::runtime_error("terrain clear requires cache and live physics world");
Box2D world wrapper (2D physics) with pixel-space coordinates. Handles stepping, gravity,...
Definition World.h:41
Sparse, chunked, deterministic 2D falling-material world.
Definition PixelWorld.h:224
Incremental static collision projection of authoritative PixelWorld chunks.
Definition PixelWorldPhysics.h:173
Script-facing owner for PixelWorld-to-Box2D terrain projection.
Definition PixelWorldPhysicsModule.h:19
PixelTerrainCollisionCache * newTerrainCache()
Create a caller-owned incremental terrain collision cache. @ownership Ownership transfers to the scri...
Definition PixelWorldPhysicsModule.cpp:14