UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Chaos::FTriangleMeshRaycastVisitor< IdxType > Struct Template Reference

Public Types

enum class  ERaycastType { Raycast , Sweep }
 
using ParticlesType = FTriangleMeshImplicitObject::ParticlesType
 

Public Member Functions

 FTriangleMeshRaycastVisitor (const FVec3 &InStart, const FVec3 &InDir, const FReal InThickness, const ParticlesType &InParticles, const TArray< TVector< IdxType, 3 > > &InElements, bool bInCullsBackFaceRaycast)
 
const voidGetQueryData () const
 
const voidGetSimData () const
 
const voidGetQueryPayload () const
 
bool VisitRaycast (TSpatialVisitorData< int32 > TriIdx, FRealSingle &CurDataLength)
 
bool VisitSweep (TSpatialVisitorData< int32 > TriIdx, FRealSingle &CurDataLength)
 
bool VisitOverlap (TSpatialVisitorData< int32 > TriIdx)
 

Public Attributes

const ParticlesTypeParticles
 
const TArray< TVector< IdxType, 3 > > & Elements
 
const FVec3StartPoint
 
const FVec3Dir
 
const FReal Thickness
 
FReal OutTime
 
FVec3 OutPosition
 
FVec3 OutNormal
 
int32 OutFaceIndex
 
bool bCullsBackFaceRaycast
 
TArray< int32RaycastTriangles
 

Member Typedef Documentation

◆ ParticlesType

Member Enumeration Documentation

◆ ERaycastType

Enumerator
Raycast 
Sweep 

Constructor & Destructor Documentation

◆ FTriangleMeshRaycastVisitor()

template<typename IdxType >
Chaos::FTriangleMeshRaycastVisitor< IdxType >::FTriangleMeshRaycastVisitor ( const FVec3 InStart,
const FVec3 InDir,
const FReal  InThickness,
const ParticlesType InParticles,
const TArray< TVector< IdxType, 3 > > &  InElements,
bool  bInCullsBackFaceRaycast 
)
inline

Member Function Documentation

◆ GetQueryData()

template<typename IdxType >
const void * Chaos::FTriangleMeshRaycastVisitor< IdxType >::GetQueryData ( ) const
inline

◆ GetQueryPayload()

template<typename IdxType >
const void * Chaos::FTriangleMeshRaycastVisitor< IdxType >::GetQueryPayload ( ) const
inline

Return a pointer to the payload on which we are querying the acceleration structure

◆ GetSimData()

template<typename IdxType >
const void * Chaos::FTriangleMeshRaycastVisitor< IdxType >::GetSimData ( ) const
inline

◆ VisitOverlap()

template<typename IdxType >
bool Chaos::FTriangleMeshRaycastVisitor< IdxType >::VisitOverlap ( TSpatialVisitorData< int32 TriIdx)
inline

◆ VisitRaycast()

template<typename IdxType >
bool Chaos::FTriangleMeshRaycastVisitor< IdxType >::VisitRaycast ( TSpatialVisitorData< int32 TriIdx,
FRealSingle CurDataLength 
)
inline

find the intersection of a ray and the triangle at index TriIdx

Returns
true if the search should continue otherwise false to stop the search through the mesh

◆ VisitSweep()

template<typename IdxType >
bool Chaos::FTriangleMeshRaycastVisitor< IdxType >::VisitSweep ( TSpatialVisitorData< int32 TriIdx,
FRealSingle CurDataLength 
)
inline

Member Data Documentation

◆ bCullsBackFaceRaycast

template<typename IdxType >
bool Chaos::FTriangleMeshRaycastVisitor< IdxType >::bCullsBackFaceRaycast

◆ Dir

◆ Elements

◆ OutFaceIndex

◆ OutNormal

◆ OutPosition

◆ OutTime

◆ Particles

◆ RaycastTriangles

◆ StartPoint

◆ Thickness


The documentation for this struct was generated from the following file: