Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Scene
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Scene/MeshSceneAdapter.h |
| Include | #include "Scene/MeshSceneAdapter.h" |
Syntax
struct FMeshSceneRayHit
Remarks
FMeshSceneRayHit is returned by various ray-intersection functions below
Variables
| Type | Name | Description | |
|---|---|---|---|
| AActor * | HitActor | Actor that was hit, if available. | |
| UActorComponent * | HitComponent | Component that was hit, if available. | |
| int32 | HitComponentElementIndex | Element Index on hit Component, if available (eg Instance Index on an InstancedStaticMesh) | |
| FVector3d | HitMeshBaryCoords | Triangle barycentric coordinates of the hit location. | |
| IMeshSpatialWrapper * | HitMeshSpatialWrapper | SpatialWrapper for the mesh geometry that was hit, if available. This is a pointer to data owned by the FMeshSceneAdapter that was queried. | |
| int32 | HitMeshTriIndex | Triangle Index/ID on mesh of hit Component. | |
| FTransformSequence3d | LocalToWorld | LocalToWorld Transform on the IMeshSpatialWrapper (for convenience) | |
| FRay3d | Ray | World ray that was cast, stored here for convenience | |
| double | RayDistance | Distance along ray that intersection occurred at |