engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
Chaos::ISpatialVisitor< TPayloadType, T > 模板类 参考abstract

Visitor base class used to iterate through spatial acceleration structures. 更多...

#include <ISpatialAcceleration.h>

Public 成员函数

virtual bool Overlap (const TSpatialVisitorData< TPayloadType > &Instance)=0
 Called whenever an instance in the acceleration structure may overlap @Instance - the instance we are potentially overlapping Returns true to continue iterating through the acceleration structure
 
virtual bool Raycast (const TSpatialVisitorData< TPayloadType > &Instance, FQueryFastData &CurData)=0
 Called whenever an instance in the acceleration structure may intersect with a raycast @Instance - the instance we are potentially intersecting with a raycast @CurData - the current query data. 更多...
 
virtual bool Sweep (const TSpatialVisitorData< TPayloadType > &Instance, FQueryFastData &CurData)=0
 Called whenever an instance in the acceleration structure may intersect with a sweep @Instance - the instance we are potentially intersecting with a sweep @CurLength - the length all future intersection tests will use. 更多...
 

详细描述

template<typename TPayloadType, typename T>
class Chaos::ISpatialVisitor< TPayloadType, T >

Visitor base class used to iterate through spatial acceleration structures.

This class is responsible for gathering any information it wants (for example narrow phase query results). This class determines whether the acceleration structure should continue to iterate through potential instances

成员函数说明

◆ Raycast()

template<typename TPayloadType , typename T >
virtual bool Chaos::ISpatialVisitor< TPayloadType, T >::Raycast ( const TSpatialVisitorData< TPayloadType > &  Instance,
FQueryFastData &  CurData 
)
pure virtual

Called whenever an instance in the acceleration structure may intersect with a raycast @Instance - the instance we are potentially intersecting with a raycast @CurData - the current query data.

Call SetLength to update the length all future intersection tests will use. A blocking intersection should update this Returns true to continue iterating through the acceleration structure

◆ Sweep()

template<typename TPayloadType , typename T >
virtual bool Chaos::ISpatialVisitor< TPayloadType, T >::Sweep ( const TSpatialVisitorData< TPayloadType > &  Instance,
FQueryFastData &  CurData 
)
pure virtual

Called whenever an instance in the acceleration structure may intersect with a sweep @Instance - the instance we are potentially intersecting with a sweep @CurLength - the length all future intersection tests will use.

A blocking intersection should update this Returns true to continue iterating through the acceleration structure


该类的文档由以下文件生成: