engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Public 属性 | 所有成员列表
TkDOPTree< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > 模板结构体 参考

This is the tree of kDOPs that spatially divides the static mesh. 更多...

#include <kDOP.h>

Public 类型

typedef COLL_DATA_PROVIDER DataProviderType
 Exposes data provider type to clients.
 
typedef TkDOPNode< DataProviderType, KDOP_IDX_TYPE > NodeType
 Exposes node type to clients.
 

Public 成员函数

void Build (TArray< FkDOPBuildCollisionTriangle< KDOP_IDX_TYPE > > &BuildTriangles)
 Creates the root node and recursively splits the triangles into smaller volumes 更多...
 
bool LineCheck (TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &Check) const
 Figures out whether the check even hits the root node's bounding volume. 更多...
 

Public 属性

kDOPArray< NodeType > Nodes
 The list of nodes contained within this tree. 更多...
 
kDOPArray< FTriangleSOA > SOATriangles
 The list of collision triangles in this tree.
 

详细描述

template<typename COLL_DATA_PROVIDER, typename KDOP_IDX_TYPE>
struct TkDOPTree< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >

This is the tree of kDOPs that spatially divides the static mesh.

It is a binary tree of kDOP nodes.

成员函数说明

◆ Build()

template<typename COLL_DATA_PROVIDER , typename KDOP_IDX_TYPE >
void TkDOPTree< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::Build ( TArray< FkDOPBuildCollisionTriangle< KDOP_IDX_TYPE > > &  BuildTriangles)
inline

Creates the root node and recursively splits the triangles into smaller volumes

参数
BuildTriangles– The list of triangles to use for the build process

◆ LineCheck()

template<typename COLL_DATA_PROVIDER , typename KDOP_IDX_TYPE >
bool TkDOPTree< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::LineCheck ( TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &  Check) const
inline

Figures out whether the check even hits the root node's bounding volume.

If it does, it recursively searches for a triangle to hit.

参数
Check– The aggregated line check data

类成员变量说明

◆ Nodes

template<typename COLL_DATA_PROVIDER , typename KDOP_IDX_TYPE >
kDOPArray<NodeType> TkDOPTree< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::Nodes

The list of nodes contained within this tree.

Node 0 is always the root node.


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