FInputRayHit

[FInputRayHit](API\Runtime\InteractiveToolsFramework\FInputRayHit) is returned by various hit-test interface functions.

Windows
MacOS
Linux

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/InputState.h

Include

#include "InputState.h"

Syntax

struct FInputRayHit

Remarks

FInputRayHit is returned by various hit-test interface functions. Generally this is intended to be returned as the result of a hit-test with a FInputDeviceRay

Variables

Name Description

Public variable

bool

 

bHasHitNormal

True if HitNormal was set

Public variable

bool

 

bHit

True if ray hit something, false otherwise

Public variable

float

 

HitDepth

Distance along ray at which intersection occurred

Public variable

int32

 

HitIdentifier

Client-defined integer identifier for hit object/element/target/etc

Public variable

FVector

 

HitNormal

Normal at hit point, if available

Public variable

void *

 

HitOwner

Client-defined pointer for hit object/target

Constructors

Name Description

Public function

FInputRayHit()

Public function

FInputRayHit

(
    float HitDepthIn
)

Public function

FInputRayHit

(
    float HitDepthIn,
    const FVector& HitNormalIn
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss