载入中...
搜索中...
未找到
Box3DShapeCook.cpp 文件参考
#include "physics/box3d/Box3DShapeCook.h"
#include <cmath>
#include "common/Exception.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::physics
 Optional physics backend for vehicle mobility and body attach.
 
namespace  eve::physics::box3d
 

函数

b3HullData * eve::physics::box3d::createCheckedHull (const std::vector< float > &vertices, int maxVertices, const char *operation)
 Validates and cooks native geometry; throws on invalid input. @ownership Transfers native allocation to caller; release with b3DestroyHull. Simulation thread only. @cost Geometry-sized allocation and preprocessing per topology edit; retain cooked geometry across frames.
 
b3MeshData * eve::physics::box3d::createCheckedMesh (const std::vector< float > &vertices, const std::vector< int32_t > &indices, bool weldVertices, float weldTolerance, bool identifyEdges, bool useMedianSplit, b3Transform transform, const std::vector< uint8_t > *materialIndices, const char *operation)
 Validates and cooks native geometry; throws on invalid input. @ownership Transfers native allocation to caller; release with b3DestroyMesh. Simulation thread only. @cost Geometry-sized allocation and preprocessing per topology edit; retain cooked geometry across frames.
 
b3HeightFieldData * eve::physics::box3d::createCheckedHeightField (int countX, int countZ, float cellSizeX, float cellSizeZ, const std::vector< float > &heights, float globalMin, float globalMax, bool clockwiseWinding, const char *operation)
 Validates and cooks native geometry; throws on invalid input. @ownership Transfers native allocation to caller; release with b3DestroyHeightField. Simulation thread only. @cost Geometry-sized allocation and preprocessing per topology edit; retain cooked geometry across frames.