载入中...
搜索中...
未找到

Versioned cook recipe for Chaos-style pre-fracture (schema v1). 更多...

#include <FractureRecipe.h>

Public 成员函数

eve::Result< void > validate () const
 Validate.
 
eve::Result< eve::Value > toValue () const
 To value.
 

静态 Public 成员函数

static eve::schema::SchemaDefinition schemaDefinition ()
 Schema definition.
 
static eve::Result< void > ensureSchemaRegistered ()
 Ensure schema registered.
 
static eve::Result< FractureRecipe > fromValue (const eve::Value &value)
 From value.
 

Public 属性

FractureMode mode = FractureMode::UniformVoronoi
 
int siteCountMin = 4
 
int siteCountMax = 4
 
int clusterCount = 2
 
float clusterRadius = 0.35f
 
int radialPlanes = 1
 
int radialSpokes = 4
 
std::vector< float > planeNormals
 
std::vector< float > planeOffsets
 
std::string interiorMaterialLogicalId
 
std::string randomStreamName = "destruction.fracture"
 
std::uint64_t seed = 1
 
float defaultStrainThreshold = 1.f
 
float defaultDensity = 1.f
 
float defaultFriction = 0.4f
 
float defaultRestitution = 0.05f
 
float minimumThickness = 0.05f
 Minimum AABB axis length in metres; thinner meshes are rejected.
 
int maximumBones = 256
 Soft cap on produced leaf bones.
 

静态 Public 属性

static constexpr std::string_view SchemaId = "physics:fracture-recipe"
 
static constexpr std::uint32_t SchemaVersion = 1
 

详细描述

Versioned cook recipe for Chaos-style pre-fracture (schema v1).

Randomness comes only from seed mixed with randomStreamName; wall clock is never read. Version 1 rejects unknown fields.

在文件 FractureRecipe.h 第 29 行定义.

成员函数说明

◆ ensureSchemaRegistered()

eve::Result< void > eve::physics::FractureRecipe::ensureSchemaRegistered ( )
static

◆ fromValue()

◆ schemaDefinition()

◆ toValue()

◆ validate()

类成员变量说明

◆ clusterCount

int eve::physics::FractureRecipe::clusterCount = 2

在文件 FractureRecipe.h 第 36 行定义.

被这些函数引用 eve::physics_editing::fractureRecipeSchema(), fromValue() , 以及 toValue().

◆ clusterRadius

float eve::physics::FractureRecipe::clusterRadius = 0.35f

在文件 FractureRecipe.h 第 37 行定义.

被这些函数引用 eve::physics_editing::fractureRecipeSchema(), fromValue(), toValue() , 以及 validate().

◆ defaultDensity

float eve::physics::FractureRecipe::defaultDensity = 1.f

◆ defaultFriction

float eve::physics::FractureRecipe::defaultFriction = 0.4f

◆ defaultRestitution

float eve::physics::FractureRecipe::defaultRestitution = 0.05f

◆ defaultStrainThreshold

float eve::physics::FractureRecipe::defaultStrainThreshold = 1.f

在文件 FractureRecipe.h 第 45 行定义.

被这些函数引用 eve::physics_editing::fractureRecipeSchema(), fromValue(), toValue() , 以及 validate().

◆ interiorMaterialLogicalId

std::string eve::physics::FractureRecipe::interiorMaterialLogicalId

在文件 FractureRecipe.h 第 42 行定义.

被这些函数引用 eve::physics_editing::fractureRecipeSchema(), fromValue(), toValue() , 以及 validate().

◆ maximumBones

int eve::physics::FractureRecipe::maximumBones = 256

Soft cap on produced leaf bones.

在文件 FractureRecipe.h 第 52 行定义.

被这些函数引用 eve::physics::destruction_cook::cookGeometryCollection(), eve::physics_editing::fractureRecipeSchema(), fromValue() , 以及 toValue().

◆ minimumThickness

float eve::physics::FractureRecipe::minimumThickness = 0.05f

Minimum AABB axis length in metres; thinner meshes are rejected.

在文件 FractureRecipe.h 第 50 行定义.

被这些函数引用 eve::physics::destruction_cook::cookGeometryCollection(), eve::physics_editing::fractureRecipeSchema(), fromValue(), toValue() , 以及 validate().

◆ mode

FractureMode eve::physics::FractureRecipe::mode = FractureMode::UniformVoronoi

◆ planeNormals

std::vector<float> eve::physics::FractureRecipe::planeNormals

在文件 FractureRecipe.h 第 40 行定义.

被这些函数引用 fromValue(), toValue() , 以及 validate().

◆ planeOffsets

std::vector<float> eve::physics::FractureRecipe::planeOffsets

在文件 FractureRecipe.h 第 41 行定义.

被这些函数引用 fromValue(), toValue() , 以及 validate().

◆ radialPlanes

int eve::physics::FractureRecipe::radialPlanes = 1

在文件 FractureRecipe.h 第 38 行定义.

被这些函数引用 eve::physics_editing::fractureRecipeSchema(), fromValue() , 以及 toValue().

◆ radialSpokes

int eve::physics::FractureRecipe::radialSpokes = 4

在文件 FractureRecipe.h 第 39 行定义.

被这些函数引用 eve::physics_editing::fractureRecipeSchema(), fromValue() , 以及 toValue().

◆ randomStreamName

std::string eve::physics::FractureRecipe::randomStreamName = "destruction.fracture"

◆ SchemaId

constexpr std::string_view eve::physics::FractureRecipe::SchemaId = "physics:fracture-recipe"
staticconstexpr

◆ SchemaVersion

constexpr std::uint32_t eve::physics::FractureRecipe::SchemaVersion = 1
staticconstexpr

在文件 FractureRecipe.h 第 31 行定义.

被这些函数引用 eve::physics_editing::fractureRecipeSchema(), schemaDefinition() , 以及 toValue().

◆ seed

std::uint64_t eve::physics::FractureRecipe::seed = 1

◆ siteCountMax

int eve::physics::FractureRecipe::siteCountMax = 4

在文件 FractureRecipe.h 第 35 行定义.

被这些函数引用 eve::physics_editing::fractureRecipeSchema(), fromValue() , 以及 toValue().

◆ siteCountMin

int eve::physics::FractureRecipe::siteCountMin = 4

在文件 FractureRecipe.h 第 34 行定义.

被这些函数引用 eve::physics_editing::fractureRecipeSchema(), fromValue(), toValue() , 以及 validate().


该结构体的文档由以下文件生成: