载入中...
搜索中...
未找到
eve::procgen_physics::GtsTerrainColliderRuntime类 参考

Transactional owner of optional static triangle-mesh colliders for a GTS tile batch. 更多...

#include <GtsTerrainColliderRuntime.h>

类

struct  Impl
 

Public 成员函数

 GtsTerrainColliderRuntime ()
 Gts terrain collider runtime.
 
 ~GtsTerrainColliderRuntime ()
 Gts terrain collider runtime.
 
 GtsTerrainColliderRuntime (const GtsTerrainColliderRuntime &)=delete
 Gts terrain collider runtime.
 
GtsTerrainColliderRuntime & operator= (const GtsTerrainColliderRuntime &)=delete
 Operator =.
 
Result< std::uint64_t > replace (const procgen::GtsTerrainLodSet &lods, physics::World3D &world, int collisionLevel, float originX=0.f, float originY=0.f, float originZ=0.f)
 Replace all colliders from one selected LOD after every candidate has succeeded.
 
Result< int > clear ()
 Destroy every still-live collider body and advance the revision.
 
physics::Body3D * getBody (int tileIndex) const
 Resolve a borrowed collider body, or null for empty, stale or invalid tile slots.
 
int getTileCount () const
 Return row-major tile slot count including empty cells.
 
std::uint64_t getRevision () const
 Return the latest committed revision.
 

详细描述

Transactional owner of optional static triangle-mesh colliders for a GTS tile batch.

在文件 GtsTerrainColliderRuntime.h 第 15 行定义.

构造及析构函数说明

◆ GtsTerrainColliderRuntime() [1/2]

eve::procgen_physics::GtsTerrainColliderRuntime::GtsTerrainColliderRuntime ( )

Gts terrain collider runtime.

在文件 GtsTerrainColliderRuntime.cpp 第 38 行定义.

◆ ~GtsTerrainColliderRuntime()

eve::procgen_physics::GtsTerrainColliderRuntime::~GtsTerrainColliderRuntime ( )

Gts terrain collider runtime.

在文件 GtsTerrainColliderRuntime.cpp 第 39 行定义.

引用了 destroy.

◆ GtsTerrainColliderRuntime() [2/2]

eve::procgen_physics::GtsTerrainColliderRuntime::GtsTerrainColliderRuntime ( const GtsTerrainColliderRuntime &  )
delete

Gts terrain collider runtime.

成员函数说明

◆ clear()

Result< int > eve::procgen_physics::GtsTerrainColliderRuntime::clear ( )

Destroy every still-live collider body and advance the revision.

在文件 GtsTerrainColliderRuntime.cpp 第 95 行定义.

引用了 count, destroy , 以及 eve::Result< T >::success().

◆ getBody()

physics::Body3D * eve::procgen_physics::GtsTerrainColliderRuntime::getBody ( int  tileIndex) const

Resolve a borrowed collider body, or null for empty, stale or invalid tile slots.

在文件 GtsTerrainColliderRuntime.cpp 第 101 行定义.

引用了 index.

◆ getRevision()

std::uint64_t eve::procgen_physics::GtsTerrainColliderRuntime::getRevision ( ) const

Return the latest committed revision.

在文件 GtsTerrainColliderRuntime.cpp 第 107 行定义.

◆ getTileCount()

int eve::procgen_physics::GtsTerrainColliderRuntime::getTileCount ( ) const

Return row-major tile slot count including empty cells.

在文件 GtsTerrainColliderRuntime.cpp 第 106 行定义.

◆ operator=()

GtsTerrainColliderRuntime & eve::procgen_physics::GtsTerrainColliderRuntime::operator= ( const GtsTerrainColliderRuntime &  )
delete

Operator =.

◆ replace()

Result< std::uint64_t > eve::procgen_physics::GtsTerrainColliderRuntime::replace ( const procgen::GtsTerrainLodSet &  lods,
physics::World3D &  world,
int  collisionLevel,
float  originX = 0.f,
float  originY = 0.f,
float  originZ = 0.f 
)

Replace all colliders from one selected LOD after every candidate has succeeded.

参数
lodsBorrowed immutable LOD set consumed synchronously.
worldBorrowed physics owner; world teardown safely makes stored handles stale.
collisionLevelLevel used as collision geometry, normally zero.
返回
New revision, or a structured failure preserving the previous live batch. @thread Owning physics thread only; no callbacks or scripts are invoked.

在文件 GtsTerrainColliderRuntime.cpp 第 40 行定义.

引用了 body, destroy, error, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), eve::procgen::GtsTerrainLodSet::getLevelCount(), eve::procgen::GtsTerrainLodSet::getTileCount(), index, indices, eve::InvalidArgument, level, mesh, ox, oy, eve::Result< T >::success(), eve::procgen::GtsTerrainLodSet::tileAt() , 以及 world.


该类的文档由以下文件生成: