This struct holds the information used to do a line check against the kDOP tree. 更多...
#include <kDOP.h>
类 TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > 继承关系图:Public 成员函数 | |
| FORCEINLINE FVector4 | GetHitNormal (void) |
| Transforms the local hit normal into a world space normal using the transpose adjoint and flips the normal if need be | |
| TkDOPLineCollisionCheck (const FVector4 &InStart, const FVector4 &InEnd, bool bInbFindClosestIntersection, const COLL_DATA_PROVIDER &InCollDataProvider, FkHitResult *InResult) | |
| Sets up the FkDOPLineCollisionCheck structure for performing line checks against a kDOPTree. 更多... | |
Public 成员函数 继承自 TkDOPCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > | |
| TkDOPCollisionCheck (const DataProviderType &InCollDataProvider) | |
| Hide the default ctor | |
Public 属性 | |
| const bool | bFindClosestIntersection |
| Flags for optimizing a trace | |
| FVector3SOA | DirSOA |
| Direction of the line (not normalized, just EndSOA-StartSOA), where each component is replicated into their own vector registers. | |
| FVector3SOA | EndSOA |
| End of the line, where each component is replicated into their own vector registers. | |
| KDOP_IDX_TYPE | HitNodeIndex |
| Index into the kDOP tree's nodes of the node that was hit. | |
| FkHitResult * | Result |
| Where the collision results get stored | |
| FVector3SOA | StartSOA |
| Start of the line, where each component is replicated into their own vector registers. | |
Public 属性 继承自 TkDOPCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > | |
| const DataProviderType & | CollDataProvider |
| Used to get access to local->world, vertices, etc. 更多... | |
| const TreeType & | kDOPTree |
| The kDOP tree | |
| const kDOPArray< NodeType > & | Nodes |
| The array of the nodes for the kDOP tree | |
| const kDOPArray< FTriangleSOA > & | SOATriangles |
| The collision triangle data for the kDOP tree | |
额外继承的成员函数 | |
Public 类型 继承自 TkDOPCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > | |
| typedef COLL_DATA_PROVIDER | DataProviderType |
| Exposes data provider type to clients. | |
| typedef TkDOPNode< DataProviderType, KDOP_IDX_TYPE > | NodeType |
| Exposes node type to clients. | |
| typedef TkDOPTree< DataProviderType, KDOP_IDX_TYPE > | TreeType |
| Exposes tree type to clients. | |
This struct holds the information used to do a line check against the kDOP tree.
The collision provider gives access to various matrices, vertex data etc. without having to use virtual functions.
|
inline |
Sets up the FkDOPLineCollisionCheck structure for performing line checks against a kDOPTree.
Initializes all of the variables that are used throughout the line check.
| InStart | – The starting point of the trace |
| InEnd | – The ending point of the trace |
| InbFindClosestIntersection | – Whether to stop at the first hit or not |
| InCollDataProvider | – The struct that provides access to mesh/primitive specific data, such as L2W, W2L, Vertices, and so on |
| InResult | – The out param for hit result information |