载入中...
搜索中...
未找到
eve::physics::detail 命名空间参考

函数

std::unique_ptr< ISimulationBackend > makeBox2DSimulationBackend (b2World *world)
 Creates the built-in Box2D CPU backend adapter.
 
PhysicsWorldHandle allocatePhysicsWorldHandle ()
 Allocates a process-local world handle from the physics owner.
 
eve::PersistentId makePhysicsWorldPersistentId (PhysicsWorldHandle runtimeHandle)
 Creates a non-nil process-local generated identity for a world without an injected persistent ID.
 

函数说明

◆ allocatePhysicsWorldHandle()

PhysicsWorldHandle eve::physics::detail::allocatePhysicsWorldHandle ( )

Allocates a process-local world handle from the physics owner.

返回
A live-world candidate with generation one.
异常
eve::Exceptionwhen the process-local index space is exhausted.

The returned value is not persistent. World owns the occupancy and invalidates the handle before its solver state is destroyed.

在文件 PhysicsHandles.cpp 第 10 行定义.

引用了 current.

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

◆ makeBox2DSimulationBackend()

EVENGINE_API_WORLD std::unique_ptr< ISimulationBackend > eve::physics::detail::makeBox2DSimulationBackend ( b2World *  world)

Creates the built-in Box2D CPU backend adapter.

参数
worldBorrowed Box2D world; it must outlive the returned backend.
返回
An owning backend adapter.
异常
eve::Exceptionwhen world is null.

This composition hook is intentionally independent of Graphics and Gpgpu.

在文件 Box2DSimulationBackend.cpp 第 12 行定义.

引用了 eve::physics::Cpu , 以及 eve::physics::ToleranceBounded.

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

◆ makePhysicsWorldPersistentId()

eve::PersistentId eve::physics::detail::makePhysicsWorldPersistentId ( PhysicsWorldHandle  runtimeHandle)

Creates a non-nil process-local generated identity for a world without an injected persistent ID.

在文件 PhysicsHandles.cpp 第 26 行定义.

引用了 bytes, eve::RuntimeHandle< Tag >::packed(), sequence , 以及 serial.

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