#include "procgen/algorithms/RockMesh.h"#include <algorithm>#include <cmath>#include <cstdint>#include <unordered_map>#include <vector>命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::procgen |
函数 | |
| bool | eve::procgen::generateRockMesh (const Params ¶ms, MeshBuild &out, std::string &error) |
| Build a shared-vertex, deformed icosphere rock for economical game props. | |
变量说明
◆ a
| uint32_t a = 0 |
在文件 RockMesh.cpp 第 17 行定义.
◆ axisX
| float axisX |
在文件 RockMesh.cpp 第 22 行定义.
被这些函数引用 eve::physics::World3D::newCrankSlider(), eve::physics::World3D::newParallelJoint(), eve::physics::World::newPrismaticJoint(), eve::physics::World3D::newPrismaticJoint(), eve::physics::World3D::newRatchet(), eve::physics::World3D::newRevoluteJoint(), eve::physics::World3D::newShaft(), eve::physics::World3D::newSphericalJoint() , 以及 eve::physics::World::newWheelJoint().
◆ axisY
| float axisY |
在文件 RockMesh.cpp 第 22 行定义.
被这些函数引用 eve::physics::World3D::newCrankSlider(), eve::physics::World3D::newParallelJoint(), eve::physics::World::newPrismaticJoint(), eve::physics::World3D::newPrismaticJoint(), eve::physics::World3D::newRatchet(), eve::physics::World3D::newRevoluteJoint(), eve::physics::World3D::newShaft(), eve::physics::World3D::newSphericalJoint() , 以及 eve::physics::World::newWheelJoint().
◆ axisZ
| float axisZ |
在文件 RockMesh.cpp 第 22 行定义.
被这些函数引用 eve::physics::World3D::newCrankSlider(), eve::physics::World3D::newParallelJoint(), eve::physics::World3D::newPrismaticJoint(), eve::physics::World3D::newRatchet(), eve::physics::World3D::newRevoluteJoint(), eve::physics::World3D::newShaft() , 以及 eve::physics::World3D::newSphericalJoint().
◆ b
| uint32_t b = 0 |
在文件 RockMesh.cpp 第 17 行定义.
◆ c
| uint32_t c = 0 |
在文件 RockMesh.cpp 第 17 行定义.
◆ cutDepth
| float cutDepth |
在文件 RockMesh.cpp 第 26 行定义.
被这些函数引用 eve::procgen::generateRockMesh().
◆ cuts
| int cuts |
在文件 RockMesh.cpp 第 25 行定义.
◆ name
| const char* name |
在文件 RockMesh.cpp 第 21 行定义.
◆ power
| float power |
◆ skewX
| float skewX |
在文件 RockMesh.cpp 第 24 行定义.
◆ skewZ
| float skewZ |
在文件 RockMesh.cpp 第 24 行定义.
◆ x
| float x = 0.f |
在文件 RockMesh.cpp 第 13 行定义.
◆ y
| float y = 0.f |
在文件 RockMesh.cpp 第 13 行定义.
◆ z
| float z = 0.f |
在文件 RockMesh.cpp 第 13 行定义.