载入中...
搜索中...
未找到
eve::physics::Destruction类 参考final

Optional physics satellite for Chaos-style geometry-collection destruction. 更多...

#include <Destruction.h>

类 eve::physics::Destruction 继承关系图:
eve::Module

Public 成员函数

 Module_REG (Destruction)
 
eve::Result< void > registerGeometryCollectionSchema ()
 Registers asset physics:geometry-collection@2 and instance snapshot physics:geometry-collection-instance@1.
 
eve::Result< GeometryCollectionAsset > assetFromJson (const std::string &json)
 Decode a versioned asset document.
 
eve::Result< GeometryCollectionAsset > makeWeldedBoxesFixture (float strainThreshold=1.f)
 Build the two-box welded fixture used by demos and tests.
 
eve::Result< GeometryCollectionAsset > makeClusterPillarFixture (float interClusterStrain=0.8f)
 Build the two-cluster anchored pillar fixture used by demos.
 
eve::Result< std::unique_ptr< GeometryCollectionInstance > > createInstance (World3D *world, const GeometryCollectionAsset &asset, float originX, float originY, float originZ)
 Instantiate a collection against a live World3D. @ownership Caller owns the returned instance.
 
GeometryCollectionAsset * newWeldedBoxesFixtureScript (float strainThreshold)
 Script facade: welded boxes fixture or throw.
 
GeometryCollectionAsset * newClusterPillarFixtureScript (float interClusterStrain)
 Script facade: cluster pillar fixture or throw.
 
GeometryCollectionAsset * assetFromJsonScript (const std::string &json)
 Script facade: decode asset JSON or throw; VM owns the pointer.
 
GeometryCollectionInstance * createInstanceScript (World3D *world, GeometryCollectionAsset *asset, float originX, float originY, float originZ)
 Script facade: create instance or throw; VM owns the pointer.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

Optional physics satellite for Chaos-style geometry-collection destruction.

Owns no instances itself; factories transfer ownership to the caller/script VM.

在文件 Destruction.h 第 22 行定义.

成员函数说明

◆ assetFromJson()

eve::Result< GeometryCollectionAsset > eve::physics::Destruction::assetFromJson ( const std::string &  json)

Decode a versioned asset document.

在文件 Destruction.cpp 第 23 行定义.

引用了 eve::Result< T >::failure(), eve::Value::fromJson() , 以及 eve::physics::GeometryCollectionAsset::fromValue().

被这些函数引用 assetFromJsonScript().

◆ assetFromJsonScript()

GeometryCollectionAsset * eve::physics::Destruction::assetFromJsonScript ( const std::string &  json)

Script facade: decode asset JSON or throw; VM owns the pointer.

在文件 Destruction.cpp 第 65 行定义.

引用了 assetFromJson().

◆ createInstance()

eve::Result< std::unique_ptr< GeometryCollectionInstance > > eve::physics::Destruction::createInstance ( World3D *  world,
const GeometryCollectionAsset &  asset,
float  originX,
float  originY,
float  originZ 
)

Instantiate a collection against a live World3D. @ownership Caller owns the returned instance.

在文件 Destruction.cpp 第 37 行定义.

引用了 eve::physics::GeometryCollectionInstance::create(), eve::Diagnostic::error(), eve::InvalidArgument , 以及 world.

被这些函数引用 createInstanceScript().

◆ createInstanceScript()

GeometryCollectionInstance * eve::physics::Destruction::createInstanceScript ( World3D *  world,
GeometryCollectionAsset *  asset,
float  originX,
float  originY,
float  originZ 
)

Script facade: create instance or throw; VM owns the pointer.

在文件 Destruction.cpp 第 75 行定义.

引用了 created, createInstance() , 以及 world.

◆ makeClusterPillarFixture()

eve::Result< GeometryCollectionAsset > eve::physics::Destruction::makeClusterPillarFixture ( float  interClusterStrain = 0.8f)

Build the two-cluster anchored pillar fixture used by demos.

在文件 Destruction.cpp 第 33 行定义.

引用了 eve::physics::GeometryCollectionAsset::makeClusterPillarFixture().

被这些函数引用 newClusterPillarFixtureScript().

◆ makeWeldedBoxesFixture()

eve::Result< GeometryCollectionAsset > eve::physics::Destruction::makeWeldedBoxesFixture ( float  strainThreshold = 1.f)

Build the two-box welded fixture used by demos and tests.

在文件 Destruction.cpp 第 29 行定义.

引用了 eve::physics::GeometryCollectionAsset::makeWeldedBoxesFixture().

被这些函数引用 newWeldedBoxesFixtureScript().

◆ Module_REG()

eve::physics::Destruction::Module_REG ( Destruction  )

◆ newClusterPillarFixtureScript()

GeometryCollectionAsset * eve::physics::Destruction::newClusterPillarFixtureScript ( float  interClusterStrain)

Script facade: cluster pillar fixture or throw.

在文件 Destruction.cpp 第 55 行定义.

引用了 created , 以及 makeClusterPillarFixture().

◆ newWeldedBoxesFixtureScript()

GeometryCollectionAsset * eve::physics::Destruction::newWeldedBoxesFixtureScript ( float  strainThreshold)

Script facade: welded boxes fixture or throw.

在文件 Destruction.cpp 第 45 行定义.

引用了 created , 以及 makeWeldedBoxesFixture().

◆ registerGeometryCollectionSchema()

eve::Result< void > eve::physics::Destruction::registerGeometryCollectionSchema ( )

Registers asset physics:geometry-collection@2 and instance snapshot physics:geometry-collection-instance@1.

在文件 Destruction.cpp 第 17 行定义.

引用了 eve::physics::GeometryCollectionAsset::ensureSchemaRegistered() , 以及 eve::physics::GeometryCollectionInstanceSnapshot::ensureSchemaRegistered().


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